Bump libultraship to implement osContGetStatus

This commit is contained in:
KiritoDv
2024-09-17 19:26:06 -03:00
committed by Sonic Dreamcaster
parent 66c5edef94
commit e38e82535d
3 changed files with 8 additions and 0 deletions
+4
View File
@@ -230,6 +230,10 @@ void Title_Main(void) {
}
void Title_UpdateEntry(void) {
// LTODO: Verify this is correct
gMainController = Title_80187ABC();
if (sTimer1 > 0) {
sTimer1--;
}
+3
View File
@@ -72,6 +72,9 @@ GameEngine::GameEngine() {
void GameEngine::Create(){
const auto instance = Instance = new GameEngine();
GameUI::SetupGuiElements();
#if defined(__SWITCH__) || defined(__WIIU__)
CVarRegisterInteger("gControlNav", 1); // always enable controller nav on switch/wii u
#endif
}
void GameEngine::Destroy(){
+1
View File
@@ -63,6 +63,7 @@ void Controller_UpdateInput(void) {
s32 i;
for (i = 0; i < 4; i++) {
gControllerPlugged[i] = osContGetStatus(i);
if ((gControllerPlugged[i] == 1) && (sNextController[i].errno == 0)) {
sPrevController[i] = gControllerHold[i];
gControllerHold[i] = sNextController[i];