Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
swap legion x and legion b
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Dec 7, 2023
1 parent 10bf0da commit 9ce5fc0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/handycon/handhelds/go_gen1.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ async def process_event(seed_event, active_keys):
elif active_keys == [] and seed_event.code in [29, 56, 111] and button_on == 0 and button2 in handycon.event_queue:
await handycon.handle_key_up(seed_event, button2)

# Legion + x = keyboard
if active_keys == [99] and button_on == 1 and button4 not in handycon.event_queue:
# Legion + B = OSK
if active_keys == [24, 29, 125] and button_on == 1 and button4 not in handycon.event_queue:
await handycon.handle_key_down(seed_event, button4)
elif active_keys == [] and seed_event.code in [99] and button_on == 0 and button4 in handycon.event_queue:
elif active_keys == [] and seed_event.code in [24, 29, 125] and button_on == 0 and button4 in handycon.event_queue:
await handycon.handle_key_up(seed_event, button4)

# Legion + B = MODE
if active_keys == [24, 29, 125] and button_on == 1 and button5 not in handycon.event_queue:
# Legion + x = MODE
if active_keys == [99] and button_on == 1 and button5 not in handycon.event_queue:
await handycon.handle_key_down(seed_event, button5)
elif active_keys == [] and seed_event.code in [24, 29, 125] and button_on == 0 and button5 in handycon.event_queue:
elif active_keys == [] and seed_event.code in [99] and button_on == 0 and button5 in handycon.event_queue:
await handycon.handle_key_up(seed_event, button5)


if handycon.last_button:
await handycon.handle_key_up(seed_event, handycon.last_button)

0 comments on commit 9ce5fc0

Please sign in to comment.