Skip to content

Commit

Permalink
Use only two modes until Luke finishes upstreaming his patch
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Feb 14, 2024
1 parent 5b007e3 commit 2166c6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rog_ally.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,15 @@ static char* find_kernel_sysfs_device_path(struct udev *udev) {
static int get_next_mode(int current_mode) {
if (current_mode == 1)
return 2;
else if (current_mode == 2)
return 1;
/*
// TODO: luke has yet to complete the mapping for mode 3, use only 1 and 2 for now
if (current_mode == 2)
return 3;
if (current_mode == 3)
return 1;
*/
else
fprintf(stderr, "Invalid current mode: %d -- 1 (gamepad) will be set\n", current_mode);

Expand Down

0 comments on commit 2166c6a

Please sign in to comment.