Skip to content

Commit

Permalink
clang-format src/kaleidoscope/keyswitch_state.h
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Jan 14, 2025
1 parent 27a408f commit 07dc220
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/kaleidoscope/keyswitch_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
* If you want an event which fires only once when a key is pressed, use
* keyToggledOn() or keyToggledOff() (defined below).
*/
#define keyIsPressed(keyState) ((keyState)&IS_PRESSED)
#define keyIsPressed(keyState) ((keyState) & IS_PRESSED)

/* keyWasPressed(): This is true if the key was pressed during the previous
scan cycle, regardless of whether it is pressed or not in this scan cycle.
*/
#define keyWasPressed(keyState) ((keyState)&WAS_PRESSED)
#define keyWasPressed(keyState) ((keyState) & WAS_PRESSED)

/* keyToggledOn(): This is true if the key is newly pressed during this scan
* cycle, i.e. was not pressed in the previous scan cycle but is now.
Expand All @@ -53,4 +53,4 @@
* plugin, i.e. it was generated artificially instead of corresponding to a
* "real" keypress.
*/
#define keyIsInjected(keyState) ((keyState)&INJECTED)
#define keyIsInjected(keyState) ((keyState) & INJECTED)

0 comments on commit 07dc220

Please sign in to comment.