Skip to content

Commit 8f7cbde

Browse files
committed
add gyro mappings fow GPD Win5
1 parent d8b9bdd commit 8f7cbde

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/hhd/device/gpd/win/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from .const import (
1919
GPD_WIN_4_8840U_MAPPINGS,
20+
GPD_WIN_5_MAPPINGS,
2021
GPD_WIN_DEFAULT_MAPPINGS,
2122
GPD_WIN_MAX_2_2023_MAPPINGS,
2223
GPD_WIN_5_BTN_MAPPINGS,
@@ -40,6 +41,7 @@
4041
"G1618-05": {
4142
"name": "GPD Win 5",
4243
"hrtimer": True,
44+
"mapping": GPD_WIN_5_MAPPINGS,
4345
"btn_mapping": GPD_WIN_5_BTN_MAPPINGS,
4446
},
4547
"G1617-01": {

src/hhd/device/gpd/win/const.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939

4040
GPD_WIN_4_8840U_MAPPINGS = gen_gyro_state("z", True, "x", False, "y", True)
4141

42+
GPD_WIN_5_MAPPINGS = gen_gyro_state("z", True, "x", False, "y", True)
43+
4244
GPD_WIN_5_BTN_MAPPINGS: dict[int, Button] = {
4345
B("KEY_VOLUMEUP"): "key_volumeup",
4446
B("KEY_VOLUMEDOWN"): "key_volumedown",

0 commit comments

Comments
 (0)