Skip to content

Commit

Permalink
Change two field types from Int32 to JoystickID
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin authored Mar 21, 2023
1 parent 21519b5 commit e3d23a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL/Event.hs
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ data JoyButtonEventData =
data JoyDeviceEventData =
JoyDeviceEventData {joyDeviceEventConnection :: !JoyDeviceConnection
-- ^ Was the device added or removed?
,joyDeviceEventWhich :: !Int32
,joyDeviceEventWhich :: !Raw.JoystickID
-- ^ The instance id of the joystick that reported the event.
}
deriving (Eq,Ord,Generic,Show,Typeable)
Expand Down Expand Up @@ -427,7 +427,7 @@ data ControllerButtonEventData =
data ControllerDeviceEventData =
ControllerDeviceEventData {controllerDeviceEventConnection :: !ControllerDeviceConnection
-- ^ Was the device added, removed, or remapped?
,controllerDeviceEventWhich :: !Int32
,controllerDeviceEventWhich :: !Raw.JoystickID
-- ^ The joystick instance ID that reported the event.
}
deriving (Eq,Ord,Generic,Show,Typeable)
Expand Down

0 comments on commit e3d23a4

Please sign in to comment.