device: add new special keys
This commit is contained in:
parent
561e9cbfea
commit
a94d00e418
|
@ -74,6 +74,7 @@ CONTROL = _NamedInts(
|
||||||
My_Videos=0x0031,
|
My_Videos=0x0031,
|
||||||
My_Computer_As_HID=0x0032,
|
My_Computer_As_HID=0x0032,
|
||||||
My_Computer_As_Win_E=0x0033,
|
My_Computer_As_Win_E=0x0033,
|
||||||
|
FN_Key=0x0034,
|
||||||
Launch_Picture_Viewer=0x0035,
|
Launch_Picture_Viewer=0x0035,
|
||||||
One_Touch_Search=0x0036,
|
One_Touch_Search=0x0036,
|
||||||
Preset_1=0x0037,
|
Preset_1=0x0037,
|
||||||
|
@ -266,12 +267,40 @@ CONTROL = _NamedInts(
|
||||||
Multiplatform_App_Switch_2=0x0100, # Multiplatform_App_Switch
|
Multiplatform_App_Switch_2=0x0100, # Multiplatform_App_Switch
|
||||||
Fn_Inversion__Hot_Key=0x0101,
|
Fn_Inversion__Hot_Key=0x0101,
|
||||||
LeftAndRightClick=0x0102,
|
LeftAndRightClick=0x0102,
|
||||||
Show_Desktop_Fn=0x0103, # MX Keys for Business Fn F5 ; MX Mini Fn F6 Dictation
|
Voice_Dictation=0x0103, # MX Keys for Business Fn F5 ; MX Mini Fn F6 Dictation
|
||||||
Backlight_Down_Fn=0x0108, # MX Keys for Business Fn F6 ; MX Mini Fn F7 Emoji
|
Emoji_Smiley_Heart_Eyes=0x0104,
|
||||||
Screenshot=0x010A, # MX Keys for Business top 3rd from right; MX Mini Fn F8 Screenshot
|
Emoji_Crying_Face=0x0105,
|
||||||
Lock_Fn=0x0117, # MX Mini Lock (on delete key in function row)
|
Emoji_Smiley=0x0106,
|
||||||
Backlight_Up_Fn=0x011C, # MX Keys for Business Fn F7 ; MX Mini Fn F9 Microphone Mute
|
Emoji_Smilie_With_Tears=0x0107,
|
||||||
LED_Toggle=0x013B, #
|
Open_Emoji_Panel=0x0108, # MX Keys for Business Fn F6 ; MX Mini Fn F7 Emoji
|
||||||
|
Multiplatform_App_Switch__Launchpad=0x0109,
|
||||||
|
Snipping_Tool=0x010A, # MX Keys for Business top 3rd from right; MX Mini Fn F8 Screenshot
|
||||||
|
Grave_Accent=0x010B,
|
||||||
|
Tab_Key=0x010C,
|
||||||
|
Caps_Lock=0x010D,
|
||||||
|
Left_Shift=0x010E,
|
||||||
|
Left_Control=0x010F,
|
||||||
|
Left_Option__Start=0x0110,
|
||||||
|
Left_Command__Alt=0x0111,
|
||||||
|
Right_Command__Alt=0x0112,
|
||||||
|
Right_Option__Start=0x0113,
|
||||||
|
Right_Control=0x0114,
|
||||||
|
Right_Shift=0x0115,
|
||||||
|
Insert=0x0116,
|
||||||
|
Delete=0x0117, # MX Mini Lock (on delete key in function row)
|
||||||
|
Home=0x118,
|
||||||
|
End=0x119,
|
||||||
|
Page_Up=0x11A,
|
||||||
|
Page_Down=0x11B,
|
||||||
|
Mute_Microphone=0x11C, # MX Keys for Business Fn F7 ; MX Mini Fn F9 Microphone Mute
|
||||||
|
Do_Not_Disturb=0x11D,
|
||||||
|
Backslash=0x11E,
|
||||||
|
Refresh=0x11F,
|
||||||
|
Close_Tab=0x120,
|
||||||
|
Lang_Switch=0x121,
|
||||||
|
Standard_Key_A=0x122,
|
||||||
|
Standard_Key_B=0x123,
|
||||||
|
Standard_Key_C=0x124, # There are lots more of these
|
||||||
)
|
)
|
||||||
|
|
||||||
for i in range(1, 33): # add in G keys - these are not really Logitech Controls
|
for i in range(1, 33): # add in G keys - these are not really Logitech Controls
|
||||||
|
@ -314,7 +343,6 @@ TASK = _NamedInts(
|
||||||
WindowsRestore=0x001B,
|
WindowsRestore=0x001B,
|
||||||
WindowsMinimize=0x001C,
|
WindowsMinimize=0x001C,
|
||||||
Music=0x001D, # also known as MediaPlayer
|
Music=0x001D, # also known as MediaPlayer
|
||||||
|
|
||||||
# Both 0x001E and 0x001F are known as MediaCenterSet
|
# Both 0x001E and 0x001F are known as MediaCenterSet
|
||||||
Media_Center_Logitech=0x001E,
|
Media_Center_Logitech=0x001E,
|
||||||
Media_Center_Microsoft=0x001F,
|
Media_Center_Microsoft=0x001F,
|
||||||
|
@ -493,7 +521,43 @@ TASK = _NamedInts(
|
||||||
App_Switch=0x00D5,
|
App_Switch=0x00D5,
|
||||||
Fn_Inversion=0x00D6,
|
Fn_Inversion=0x00D6,
|
||||||
LeftAndRightClick=0x00D7,
|
LeftAndRightClick=0x00D7,
|
||||||
LedToggle=0x00DD, #
|
Voice_Dictation=0x00D8,
|
||||||
|
Emoji_Smiling_Face_With_Heart_Shaped_Eyes=0x00D9,
|
||||||
|
Emoji_Loudly_Crying_Face=0x00DA,
|
||||||
|
Emoji_Smiley=0x00DB,
|
||||||
|
Emoji_Smiley_With_Tears=0x00DC,
|
||||||
|
Open_Emoji_Panel=0x00DD,
|
||||||
|
Multiplatform_App_Switch__Launchpad=0x00DE,
|
||||||
|
Snipping_Tool=0x00DF,
|
||||||
|
Grave_Accent=0x00E0,
|
||||||
|
Standard_Tab_Key=0x00E1,
|
||||||
|
Caps_Lock=0x00E2,
|
||||||
|
Left_Shift=0x00E3,
|
||||||
|
Left_Control=0x00E4,
|
||||||
|
Left_Option__Start=0x00E5,
|
||||||
|
Left_Command__Alt=0x00E6,
|
||||||
|
Right_Command__Alt=0x00E7,
|
||||||
|
Right_Option__Start=0x00E8,
|
||||||
|
Right_Control=0x00E9,
|
||||||
|
Right_Shift=0x0EA,
|
||||||
|
Insert=0x00EB,
|
||||||
|
Delete=0x00EC,
|
||||||
|
Home=0x00ED,
|
||||||
|
End=0x00EE,
|
||||||
|
Page_Up=0x00EF,
|
||||||
|
Page_Down=0x00F0,
|
||||||
|
Mute_Microphone=0x00F1,
|
||||||
|
Do_Not_Disturb=0x00F2,
|
||||||
|
Backslash=0x00F3,
|
||||||
|
Refresh=0x00F4,
|
||||||
|
Close_Tab=0x00F5,
|
||||||
|
Lang_Switch=0x00F6,
|
||||||
|
Standard_Alphabetical_Key=0x00F7,
|
||||||
|
Right_Option__Start__2=0x00F8,
|
||||||
|
Left_Option=0x00F9,
|
||||||
|
Right_Option=0x00FA,
|
||||||
|
Left_Cmd=0x00FB,
|
||||||
|
Right_Cmd=0x00FC,
|
||||||
)
|
)
|
||||||
TASK._fallback = lambda x: 'unknown:%04X' % x
|
TASK._fallback = lambda x: 'unknown:%04X' % x
|
||||||
# Capabilities and desired software handling for a control
|
# Capabilities and desired software handling for a control
|
||||||
|
|
Loading…
Reference in New Issue