From 8d961869eea667156b56eab7bcc422ff96049ef3 Mon Sep 17 00:00:00 2001 From: Oznogon Date: Thu, 12 Mar 2026 11:59:40 -0700 Subject: [PATCH] Add sp::Keybinding::Type::Mouse union In parallel to sp::Keybinding::Type::Joystick and Controller, add a Mouse type of Pointer, MouseMovement, and MouseWheel. --- src/io/keybinding.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/io/keybinding.h b/src/io/keybinding.h index 85863b56..2c8d8640 100644 --- a/src/io/keybinding.h +++ b/src/io/keybinding.h @@ -29,8 +29,9 @@ class Keybinding : sp::NonCopyable Joystick = JoystickButton | JoystickAxis, Controller = ControllerButton | ControllerAxis, + Mouse = Pointer | MouseMovement | MouseWheel, - Default = Keyboard | Pointer | Joystick | Controller | Virtual, + Default = Keyboard | Virtual | Joystick | Controller | Mouse, }; //Create a keybinding, and optionally set the default key(s). See setKey for documentation on key naming.