Skip to content

Commit

Permalink
Fix detection_fix for devices without buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawstorant committed Feb 21, 2025
1 parent 8490d72 commit b271d2f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions boxflat/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ def detection_fix(self, device: evdev.InputDevice) -> evdev.UInput:
# return

# Remove unneeded event types
cap.pop(EV_SYN)
cap.pop(EV_MSC)
if EV_SYN in cap:
cap.pop(EV_SYN)

if EV_MSC in cap:
cap.pop(EV_MSC)

# Add necessary event types
if EV_ABS not in cap:
Expand Down
2 changes: 1 addition & 1 deletion data/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.28.1
v1.28.2
5 changes: 5 additions & 0 deletions io.github.lawstorant.boxflat.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
<update_contact>[email protected]</update_contact>

<releases>
<release version="v1.28.2" date="2025-02-21">
<description>
<p>Fix detection fix for devices without buttons</p>
</description>
</release>
<release version="v1.28.1" date="2025-02-21">
<description>
<p>Support for detection fox for generic gamepads, not only joysticks.</p>
Expand Down

0 comments on commit b271d2f

Please sign in to comment.