Skip to content

Commit

Permalink
[libretro] Fix build for dingux-mips32
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jan 5, 2024
1 parent 065e37f commit c9a683c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platforms/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,16 +445,16 @@ static void update_input(void)
if (mouse[0] != mousepre[0])
{
if (mouse[0])
core->KeyPressed(GC_Controllers::Controller_1, GC_Keys::Key_Left_Button);
core->KeyPressed(Controller_1, Key_Left_Button);
else
core->KeyReleased(GC_Controllers::Controller_1, GC_Keys::Key_Left_Button);
core->KeyReleased(Controller_1, Key_Left_Button);
}
if (mouse[1] != mousepre[1])
{
if (mouse[1])
core->KeyPressed(GC_Controllers::Controller_1, GC_Keys::Key_Right_Button);
core->KeyPressed(Controller_1, Key_Right_Button);
else
core->KeyReleased(GC_Controllers::Controller_1, GC_Keys::Key_Right_Button);
core->KeyReleased(Controller_1, Key_Right_Button);
}
}
}
Expand Down

0 comments on commit c9a683c

Please sign in to comment.