add way to change audio volume (#330)

* add way to change audio volume

* more
This commit is contained in:
Logan McNaughton
2025-03-15 11:11:18 +01:00
committed by GitHub
parent 11b1137412
commit e48ad9bdff
4 changed files with 38 additions and 0 deletions
+8
View File
@@ -195,6 +195,12 @@ bool sdl_event_filter(void *userdata, SDL_Event *event)
case SDL_SCANCODE_F7:
callback.load_state = true;
break;
case SDL_SCANCODE_LEFTBRACKET:
callback.lower_volume = true;
break;
case SDL_SCANCODE_RIGHTBRACKET:
callback.raise_volume = true;
break;
default:
break;
}
@@ -449,6 +455,8 @@ CALL_BACK rdp_check_callback()
CALL_BACK return_value = callback;
callback.save_state = false;
callback.load_state = false;
callback.lower_volume = false;
callback.raise_volume = false;
return return_value;
}