Joy/controller Events all have which of u32
@@ -539,7 +539,7 @@ pub enum Event {
JoyAxisMotion {
timestamp: u32,
/// The joystick's `id`
- which: i32,
+ which: u32,
axis_idx: u8,
value: i16
},
@@ -547,7 +547,7 @@ pub enum Event {
JoyBallMotion {
timestamp: u32,
/// The joystick's `id`
- which: i32,
+ which: u32,
ball_idx: u8,
xrel: i16,
yrel: i16
@@ -556,7 +556,7 @@ pub enum Event {
JoyHatMotion {
timestamp: u32,
/// The joystick's `id`
- which: i32,
+ which: u32,
hat_idx: u8,
state: HatState
},
@@ -564,31 +564,31 @@ pub enum Event {
JoyButtonDown {
timestamp: u32,
/// The joystick's `id`
- which: i32,
+ which: u32,
button_idx: u8
},
JoyButtonUp {
timestamp: u32,
/// The joystick's `id`
- which: i32,
+ which: u32,
button_idx: u8
},
JoyDeviceAdded {
timestamp: u32,
/// The newly added joystick's `joystick_index`
- which: i32
+ which: u32
},
JoyDeviceRemoved {
timestamp: u32,
/// The joystick's `id`
- which: i32
+ which: u32
},
ControllerAxisMotion {
timestamp: u32,
/// The controller's joystick `id`
- which: i32,
+ which: u32,
axis: Axis,
value: i16
},
@@ -596,30 +596,30 @@ pub enum Event {
ControllerButtonDown {
timestamp: u32,
/// The controller's joystick `id`
- which: i32,
+ which: u32,
button: Button
},
ControllerButtonUp {
timestamp: u32,
/// The controller's joystick `id`
- which: i32,
+ which: u32,
button: Button
},
ControllerDeviceAdded {
timestamp: u32,
/// The newly added controller's `joystick_index`
- which: i32
+ which: u32
},
ControllerDeviceRemoved {
timestamp: u32,
/// The controller's joystick `id`
- which: i32
+ which: u32
},
ControllerDeviceRemapped {
timestamp: u32,
/// The controller's joystick `id`
- which: i32
+ which: u32
},
FingerDown {
