Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/SDL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Here @events@ is a list of 'Event' values. For our application we will check if
'keyboardEventKeyMotion' keyboardEvent == 'Pressed' &&
'keysymKeycode' ('keyboardEventKeysym' keyboardEvent) == 'KeycodeQ'
_ -> False
qPressed = not (null (filter eventIsQPress events))
qPressed = any eventIsQPress events
@

In our @appLoop@ we process events and then update the screen accordingly. Here we simply use the 'Renderer'
Expand Down