mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-10-20 10:37:37 -04:00
Merge pull request #334 from hackgrid/menu-improvements-2
Various little menu improvements 2
This commit is contained in:
commit
48e2115ee3
|
@ -58,11 +58,13 @@ void audioOptionsHandleSlider(short selectedItem, unsigned short* settingValue,
|
||||||
newValue = newValue + chunk_size;
|
newValue = newValue + chunk_size;
|
||||||
newValue = newValue - (newValue % chunk_size);
|
newValue = newValue - (newValue % chunk_size);
|
||||||
}
|
}
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controllerGetButtonDown(0, L_JPAD)) {
|
if (controllerGetButtonDown(0, L_JPAD)) {
|
||||||
newValue = newValue - 1;
|
newValue = newValue - 1;
|
||||||
newValue = newValue - (newValue % chunk_size);
|
newValue = newValue - (newValue % chunk_size);
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newValue < 0) {
|
if (newValue < 0) {
|
||||||
|
|
|
@ -33,11 +33,13 @@ void gameplayOptionsHandleSlider(unsigned short* settingValue, float* sliderValu
|
||||||
newValue = newValue + SCROLL_CHUNK_SIZE;
|
newValue = newValue + SCROLL_CHUNK_SIZE;
|
||||||
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
||||||
}
|
}
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controllerGetButtonDown(0, L_JPAD)) {
|
if (controllerGetButtonDown(0, L_JPAD)) {
|
||||||
newValue = newValue - 1;
|
newValue = newValue - 1;
|
||||||
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newValue < 0) {
|
if (newValue < 0) {
|
||||||
|
|
|
@ -60,11 +60,13 @@ void joystickOptionsHandleSlider(unsigned short* settingValue, float* sliderValu
|
||||||
newValue = newValue + SCROLL_CHUNK_SIZE;
|
newValue = newValue + SCROLL_CHUNK_SIZE;
|
||||||
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
||||||
}
|
}
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (controllerGetButtonDown(0, L_JPAD)) {
|
if (controllerGetButtonDown(0, L_JPAD)) {
|
||||||
newValue = newValue - 1;
|
newValue = newValue - 1;
|
||||||
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
newValue = newValue - (newValue % SCROLL_CHUNK_SIZE);
|
||||||
|
soundPlayerPlay(SOUNDS_BUTTONCLICKRELEASE, 1.0f, 0.5f, NULL, NULL, SoundTypeAll);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newValue < 0) {
|
if (newValue < 0) {
|
||||||
|
|
Loading…
Reference in a new issue