Description
This PR does not change any functionality, but it improves code consistency and readability.
Two main changes are proposed:
The action modifiers constants QUIT_MODIFIERS and MODIFIERS in input/{evdev,x11}.c respectively are renamed to ACTION_MODIFIERS as it is in input/sdl.c, so these are consistently named across all three input drivers.
A new QUIT_KEY constant is added to input/x11.c and used instead of the direct key code for readability. This constant name is also consistent across all three input drivers.
Purpose
Make the codebase more consistent, readable and clean, hence better to maintain and work with.
I plan to bring some new functionality and cleaning up the code helps to have less clutter in future.
I hope this can be merged soon. Thanks!
Description This PR does not change any functionality, but it improves code consistency and readability. Two main changes are proposed:
QUIT_MODIFIERS
andMODIFIERS
ininput/{evdev,x11}.c
respectively are renamed toACTION_MODIFIERS
as it is ininput/sdl.c
, so these are consistently named across all three input drivers.QUIT_KEY
constant is added toinput/x11.c
and used instead of the direct key code for readability. This constant name is also consistent across all three input drivers.Purpose Make the codebase more consistent, readable and clean, hence better to maintain and work with. I plan to bring some new functionality and cleaning up the code helps to have less clutter in future. I hope this can be merged soon. Thanks!