Skip to content

Commit e3d23a4

Browse files
authored
Change two field types from Int32 to JoystickID
1 parent 21519b5 commit e3d23a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SDL/Event.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ data JoyButtonEventData =
396396
data JoyDeviceEventData =
397397
JoyDeviceEventData {joyDeviceEventConnection :: !JoyDeviceConnection
398398
-- ^ Was the device added or removed?
399-
,joyDeviceEventWhich :: !Int32
399+
,joyDeviceEventWhich :: !Raw.JoystickID
400400
-- ^ The instance id of the joystick that reported the event.
401401
}
402402
deriving (Eq,Ord,Generic,Show,Typeable)
@@ -427,7 +427,7 @@ data ControllerButtonEventData =
427427
data ControllerDeviceEventData =
428428
ControllerDeviceEventData {controllerDeviceEventConnection :: !ControllerDeviceConnection
429429
-- ^ Was the device added, removed, or remapped?
430-
,controllerDeviceEventWhich :: !Int32
430+
,controllerDeviceEventWhich :: !Raw.JoystickID
431431
-- ^ The joystick instance ID that reported the event.
432432
}
433433
deriving (Eq,Ord,Generic,Show,Typeable)

0 commit comments

Comments
 (0)