M686, M913 button mapping: rename "default" to "keyboard_key"
This commit is contained in:
parent
a610000e99
commit
c61b2e8a66
5 changed files with 7 additions and 6 deletions
|
@ -27,8 +27,9 @@ dpi5=16000
|
||||||
|
|
||||||
# Button mapping, currently supported:
|
# Button mapping, currently supported:
|
||||||
# left, middle, right, forward, back
|
# left, middle, right, forward, back
|
||||||
# led_toggle, report_rate, default, none
|
# led_toggle, report_rate, none
|
||||||
# dpi-, dpi+, dpi-cycle
|
# dpi-, dpi+, dpi-cycle
|
||||||
|
# individual keyboard keys
|
||||||
button_left=left
|
button_left=left
|
||||||
button_right=right
|
button_right=right
|
||||||
button_middle=middle
|
button_middle=middle
|
||||||
|
|
|
@ -27,9 +27,9 @@ dpi5=16000
|
||||||
|
|
||||||
# Button mapping, currently supported:
|
# Button mapping, currently supported:
|
||||||
# left, middle, right, forward, back
|
# left, middle, right, forward, back
|
||||||
# led_toggle, report_rate, default, none
|
# led_toggle, report_rate, none
|
||||||
# dpi-, dpi+, dpi-cycle
|
# dpi-, dpi+, dpi-cycle
|
||||||
# a-z
|
# individual keyboard keys
|
||||||
button_left=left
|
button_left=left
|
||||||
button_right=right
|
button_right=right
|
||||||
button_middle=middle
|
button_middle=middle
|
||||||
|
|
|
@ -178,7 +178,7 @@ int mouse_m686::set_key_mapping( rd_profile profile, int key, std::string mappin
|
||||||
if( _c_keyboard_key_values.find(mapping) != _c_keyboard_key_values.end() ){ // keyboard key
|
if( _c_keyboard_key_values.find(mapping) != _c_keyboard_key_values.end() ){ // keyboard key
|
||||||
|
|
||||||
// the button gets mapped as "default"
|
// the button gets mapped as "default"
|
||||||
_s_keymap_data[rd_profile_to_m686_profile(profile)][key] = rd_mouse_wireless::_c_keycodes["default"];
|
_s_keymap_data[rd_profile_to_m686_profile(profile)][key] = rd_mouse_wireless::_c_keycodes["keyboard_key"];
|
||||||
|
|
||||||
// and additional packets are sent
|
// and additional packets are sent
|
||||||
_s_keyboard_key_packets.push_back(_c_data_button_as_keyboard_key);
|
_s_keyboard_key_packets.push_back(_c_data_button_as_keyboard_key);
|
||||||
|
|
|
@ -178,7 +178,7 @@ int mouse_m913::set_key_mapping( rd_profile profile, int key, std::string mappin
|
||||||
if( _c_keyboard_key_values.find(mapping) != _c_keyboard_key_values.end() ){ // keyboard key
|
if( _c_keyboard_key_values.find(mapping) != _c_keyboard_key_values.end() ){ // keyboard key
|
||||||
|
|
||||||
// the button gets mapped as "default"
|
// the button gets mapped as "default"
|
||||||
_s_keymap_data[rd_profile_to_m913_profile(profile)][key] = rd_mouse_wireless::_c_keycodes["default"];
|
_s_keymap_data[rd_profile_to_m913_profile(profile)][key] = rd_mouse_wireless::_c_keycodes["keyboard_key"];
|
||||||
|
|
||||||
// and additional packets are sent
|
// and additional packets are sent
|
||||||
_s_keyboard_key_packets.push_back(_c_data_button_as_keyboard_key);
|
_s_keyboard_key_packets.push_back(_c_data_button_as_keyboard_key);
|
||||||
|
|
|
@ -29,7 +29,7 @@ std::map< std::string, std::array<uint8_t, 4> > rd_mouse_wireless::_c_keycodes =
|
||||||
{ "dpi-", { 0x02, 0x03, 0x00, 0x50 } },
|
{ "dpi-", { 0x02, 0x03, 0x00, 0x50 } },
|
||||||
{ "dpi+", { 0x02, 0x02, 0x00, 0x51 } },
|
{ "dpi+", { 0x02, 0x02, 0x00, 0x51 } },
|
||||||
{ "dpi-cycle", { 0x02, 0x01, 0x00, 0x52 } },
|
{ "dpi-cycle", { 0x02, 0x01, 0x00, 0x52 } },
|
||||||
{ "default", { 0x05, 0x00, 0x00, 0x50 } },
|
{ "keyboard_key", { 0x05, 0x00, 0x00, 0x50 } },
|
||||||
{ "none", { 0x00, 0x00, 0x00, 0x55 } },
|
{ "none", { 0x00, 0x00, 0x00, 0x55 } },
|
||||||
{ "profile_switch", { 0x09, 0x00, 0x00, 0x4c } },
|
{ "profile_switch", { 0x09, 0x00, 0x00, 0x4c } },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue