sculpt: remap KEY_SYSRQ to KEY_PRINT

Both keys are physically the same on available keyboards (with varying
labeling). Unfortunately, PS/2 scancode sets and USB HID spec seem to
differ slightly in their interpretation. Therefore, we keep the
driver-level reporting as is but report both as KEY_PRINT in Sculpt,
which allows to use the key(s) for screenshoter rules most prominently.

Also, unify sculpt/event_filter/pc with sculpt_manager.
This commit is contained in:
Christian Helmuth 2024-04-29 15:31:20 +02:00
parent 00c776c3dd
commit fc27469b97
2 changed files with 3 additions and 2 deletions

View File

@ -2,10 +2,10 @@
<output>
<chargen>
<remap>
<!-- <key name="KEY_CAPSLOCK" to="KEY_ESC"/> -->
<key name="KEY_F11" to="KEY_RESTART"/>
<key name="KEY_CAPSLOCK" to="KEY_CAPSLOCK"/>
<key name="KEY_F12" to="KEY_DASHBOARD"/>
<key name="KEY_LEFTMETA" to="KEY_SCREEN"/>
<key name="KEY_SYSRQ" to="KEY_PRINT"/>
<include rom="numlock.remap"/>
<merge>
<accelerate max="50" sensitivity_percent="1000" curve="127">

View File

@ -2388,6 +2388,7 @@ void Sculpt::Main::_generate_event_filter_config(Xml_generator &xml)
gen_key("KEY_CAPSLOCK", "KEY_CAPSLOCK");
gen_key("KEY_F12", "KEY_DASHBOARD");
gen_key("KEY_LEFTMETA", "KEY_SCREEN");
gen_key("KEY_SYSRQ", "KEY_PRINT");
gen_include("numlock.remap");
xml.node("merge", [&] {