Skip to content

Commit 5b0cca6

Browse files
committed
fix usages on the ally
1 parent a57aeb7 commit 5b0cca6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/hhd/controller/physical/hidraw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def __init__(
4141
product: Sequence[str | re.Pattern] = [],
4242
usage_page: Sequence[int] = [],
4343
usage: Sequence[int] = [],
44+
application: Sequence[int] = [],
4445
interface: int | None = None,
4546
btn_map: dict[int | None, dict[Button, BM]] = {},
4647
axis_map: dict[int | None, dict[Axis, AM]] = {},

src/hhd/device/rog_ally/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,11 @@ def controller_loop(
353353
d_allyx = AllyXHidraw(
354354
vid=[ASUS_VID],
355355
pid=[ALLY_X_PID],
356-
usage_page=[0x0F],
357-
usage=[0x21],
356+
application=[
357+
0x000F0002,
358+
0x000F0021,
359+
0x00010005,
360+
],
358361
required=True,
359362
)
360363
else:

0 commit comments

Comments
 (0)