Skip to content

Commit

Permalink
Remove top-level const
Browse files Browse the repository at this point in the history
For consistency, never use top-level const for local variables.

PR Genymobile#5076 <Genymobile#5076>
  • Loading branch information
rom1v authored and Gottox committed Sep 29, 2024
1 parent 013de9c commit d2068d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/input_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,9 +846,9 @@ sc_input_manager_process_mouse_button(struct sc_input_manager *im,
// can be used instead of Ctrl. The "virtual finger" has a position
// inverted with respect to the vertical axis of symmetry in the middle of
// the screen.
const SDL_Keymod keymod = SDL_GetModState();
const bool ctrl_pressed = keymod & KMOD_CTRL;
const bool shift_pressed = keymod & KMOD_SHIFT;
SDL_Keymod keymod = SDL_GetModState();
bool ctrl_pressed = keymod & KMOD_CTRL;
bool shift_pressed = keymod & KMOD_SHIFT;
if (event->button == SDL_BUTTON_LEFT &&
((down && !im->vfinger_down &&
((ctrl_pressed && !shift_pressed) ||
Expand Down

0 comments on commit d2068d1

Please sign in to comment.