@@ -124,7 +124,7 @@ enum packet_type_e {
124124    FLASH_LED_MSG         =  9 ,
125125    WIPE_CONFIG_MSG       =  10 ,
126126    HEARTBEAT_MSG         =  12 ,
127-     RELATIVE_MODE_MSG     =  13 ,
127+     GAMING_MODE_MSG        =  13 ,
128128    CONSUMER_CONTROL_MSG  =  14 ,
129129    SYSTEM_CONTROL_MSG    =  15 ,
130130    SAVE_CONFIG_MSG       =  18 ,
@@ -185,7 +185,6 @@ typedef struct {
185185/*********  Screen  **********/ 
186186#define  MIN_SCREEN_COORD  0
187187#define  MAX_SCREEN_COORD  32767
188- #define  SCREEN_MIDPOINT   16384
189188
190189/*********  Configuration storage definitions  **********/ 
191190
@@ -424,6 +423,7 @@ typedef struct {
424423    bool  switch_lock ;        // True when device is prevented from switching 
425424    bool  onboard_led_state ;  // True when LED is ON 
426425    bool  relative_mouse ;     // True when relative mouse mode is used 
426+     bool  gaming_mode ;        // True when gaming mode is on (relative passthru + lock) 
427427    bool  config_mode_active ; // True when config mode is active 
428428    bool  digitizer_active ;   // True when digitizer Win/Mac workaround is active 
429429
@@ -534,7 +534,7 @@ void fw_upgrade_hotkey_handler_B(device_t *, hid_keyboard_report_t *);
534534void  mouse_zoom_hotkey_handler (device_t  * , hid_keyboard_report_t  * );
535535void  all_keys_released_handler (device_t  * );
536536void  switchlock_hotkey_handler (device_t  * , hid_keyboard_report_t  * );
537- void  toggle_relative_mode_handler (device_t  * , hid_keyboard_report_t  * );
537+ void  toggle_gaming_mode_handler (device_t  * , hid_keyboard_report_t  * );
538538void  screenlock_hotkey_handler (device_t  * , hid_keyboard_report_t  * );
539539void  output_config_hotkey_handler (device_t  * , hid_keyboard_report_t  * );
540540void  wipe_config_hotkey_handler (device_t  * , hid_keyboard_report_t  * );
@@ -561,7 +561,7 @@ void handle_heartbeat_msg(uart_packet_t *, device_t *);
561561void  handle_proxy_msg (uart_packet_t  * , device_t  * );
562562void  handle_api_msgs (uart_packet_t  * , device_t  * );
563563void  handle_api_read_all_msg (uart_packet_t  * , device_t  * );
564- void  handle_toggle_relative_msg (uart_packet_t  * , device_t  * );
564+ void  handle_toggle_gaming_msg (uart_packet_t  * , device_t  * );
565565
566566void  switch_output (device_t  * , uint8_t );
567567
0 commit comments