1786114941
This commit is contained in:
@@ -45,6 +45,7 @@ impl InputState {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for event in events {
|
for event in events {
|
||||||
|
dbg!(&event);
|
||||||
match event.destructure() {
|
match event.destructure() {
|
||||||
EventSummary::AbsoluteAxis(_, AbsoluteAxisCode::ABS_X, value) => {
|
EventSummary::AbsoluteAxis(_, AbsoluteAxisCode::ABS_X, value) => {
|
||||||
self.x = ((((value - 13) as f32 / 882.) * (self.width as f32)) as i32)
|
self.x = ((((value - 13) as f32 / 882.) * (self.width as f32)) as i32)
|
||||||
|
|||||||
Reference in New Issue
Block a user