Tidy up use of keycode range helpers (#19813)
This commit is contained in:
parent
13af265268
commit
6ceff1367d
4 changed files with 8 additions and 9 deletions
|
@ -28,9 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#define IS_ANY(code) (KC_A <= (code) && (code) <= 0xFF)
|
||||
|
||||
#define IS_SYSTEM(code) IS_SYSTEM_KEYCODE(code)
|
||||
#define IS_CONSUMER(code) IS_MEDIA_KEYCODE(code)
|
||||
|
||||
#define IS_MOUSEKEY(code) IS_MOUSE_KEYCODE(code)
|
||||
#define IS_MOUSEKEY_MOVE(code) (KC_MS_UP <= (code) && (code) <= KC_MS_RIGHT)
|
||||
#define IS_MOUSEKEY_BUTTON(code) (KC_MS_BTN1 <= (code) && (code) <= KC_MS_BTN8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue