mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Move special code handling to where it is actually defined
This commit is contained in:
parent
13d9b8bbf8
commit
2d3f22a579
|
@ -115,18 +115,18 @@ static void uniwill_wmi_handle_event(u32 value, void *context, u32 guid_nr)
|
||||||
if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) {
|
if (!sparse_keymap_report_known_event(current_driver->input_device, code, 1, true)) {
|
||||||
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
|
TUXEDO_DEBUG("[Ev %d] Unknown key - %d (%0#6x)\n", guid_nr, code, code);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Special key combination when mode change key is pressed
|
// Special key combination when mode change key is pressed
|
||||||
if (code == 0xb0) {
|
if (code == 0xb0) {
|
||||||
input_report_key(current_driver->input_device, KEY_LEFTMETA, 1);
|
input_report_key(current_driver->input_device, KEY_LEFTMETA, 1);
|
||||||
input_report_key(current_driver->input_device, KEY_LEFTALT, 1);
|
input_report_key(current_driver->input_device, KEY_LEFTALT, 1);
|
||||||
input_report_key(current_driver->input_device, KEY_F6, 1);
|
input_report_key(current_driver->input_device, KEY_F6, 1);
|
||||||
input_sync(current_driver->input_device);
|
input_sync(current_driver->input_device);
|
||||||
input_report_key(current_driver->input_device, KEY_F6, 0);
|
input_report_key(current_driver->input_device, KEY_F6, 0);
|
||||||
input_report_key(current_driver->input_device, KEY_LEFTALT, 0);
|
input_report_key(current_driver->input_device, KEY_LEFTALT, 0);
|
||||||
input_report_key(current_driver->input_device, KEY_LEFTMETA, 0);
|
input_report_key(current_driver->input_device, KEY_LEFTMETA, 0);
|
||||||
input_sync(current_driver->input_device);
|
input_sync(current_driver->input_device);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
kfree(obj);
|
kfree(obj);
|
||||||
|
|
Loading…
Reference in a new issue