@@ -30,9 +30,14 @@ const field_map_t api_field_map[] = {
3030 { 19 , false, UINT8 , 1 , offsetof(device_t , config .output [0 ].screensaver .mode ) },
3131 { 20 , false, UINT8 , 1 , offsetof(device_t , config .output [0 ].screensaver .only_if_inactive ) },
3232
33- /* Until we increase the payload size from 8 bytes, clamp to avoid exceeding the field size */
34- { 21 , false, UINT64 , 7 , offsetof(device_t , config .output [0 ].screensaver .idle_time_us ) },
35- { 22 , false, UINT64 , 7 , offsetof(device_t , config .output [0 ].screensaver .max_time_us ) },
33+ /* Screensaver idle and max times (64-bit values) */
34+ { 21 , false, UINT64 , 8 , offsetof(device_t , config .output [0 ].screensaver .idle_time_us ) },
35+ { 22 , false, UINT64 , 8 , offsetof(device_t , config .output [0 ].screensaver .max_time_us ) },
36+
37+ /* Gaming edge settings for Output A */
38+ { 23 , false, UINT32 , 4 , offsetof(device_t , config .output [0 ].gaming_edge_threshold ) },
39+ { 24 , false, UINT32 , 4 , offsetof(device_t , config .output [0 ].gaming_edge_window_ms ) },
40+ { 25 , false, UINT32 , 4 , offsetof(device_t , config .output [0 ].gaming_edge_max_vertical ) },
3641
3742 /* Output B */
3843 { 40 , false, UINT32 , 4 , offsetof(device_t , config .output [1 ].number ) },
@@ -46,8 +51,14 @@ const field_map_t api_field_map[] = {
4651 { 48 , false, UINT8 , 1 , offsetof(device_t , config .output [1 ].mouse_park_pos ) },
4752 { 49 , false, UINT8 , 1 , offsetof(device_t , config .output [1 ].screensaver .mode ) },
4853 { 50 , false, UINT8 , 1 , offsetof(device_t , config .output [1 ].screensaver .only_if_inactive ) },
49- { 51 , false, UINT64 , 7 , offsetof(device_t , config .output [1 ].screensaver .idle_time_us ) },
50- { 52 , false, UINT64 , 7 , offsetof(device_t , config .output [1 ].screensaver .max_time_us ) },
54+ /* Screensaver idle and max times (64-bit values) */
55+ { 51 , false, UINT64 , 8 , offsetof(device_t , config .output [1 ].screensaver .idle_time_us ) },
56+ { 52 , false, UINT64 , 8 , offsetof(device_t , config .output [1 ].screensaver .max_time_us ) },
57+
58+ /* Gaming edge settings for Output B */
59+ { 53 , false, UINT32 , 4 , offsetof(device_t , config .output [1 ].gaming_edge_threshold ) },
60+ { 54 , false, UINT32 , 4 , offsetof(device_t , config .output [1 ].gaming_edge_window_ms ) },
61+ { 55 , false, UINT32 , 4 , offsetof(device_t , config .output [1 ].gaming_edge_max_vertical ) },
5162
5263 /* Common config */
5364 { 70 , false, UINT32 , 4 , offsetof(device_t , config .version ) },
@@ -60,8 +71,6 @@ const field_map_t api_field_map[] = {
6071 { 77 , false, UINT16 , 2 , offsetof(device_t , config .jump_threshold ) },
6172 { 83 , false, UINT8 , 1 , offsetof(device_t , config .gaming_mode_on_boot ) },
6273 { 84 , false, UINT8 , 1 , offsetof(device_t , config .gaming_edge_enabled ) },
63- { 85 , false, UINT16 , 2 , offsetof(device_t , config .gaming_edge_threshold ) },
64- { 86 , false, UINT16 , 2 , offsetof(device_t , config .gaming_edge_window_ms ) },
6574
6675 /* Firmware */
6776 { 78 , true, UINT16 , 2 , offsetof(device_t , _running_fw .version ) },
0 commit comments