mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
Bump libultraship to implement osContGetStatus
This commit is contained in:
parent
66c5edef94
commit
e38e82535d
@ -230,6 +230,10 @@ void Title_Main(void) {
|
||||
}
|
||||
|
||||
void Title_UpdateEntry(void) {
|
||||
|
||||
// LTODO: Verify this is correct
|
||||
gMainController = Title_80187ABC();
|
||||
|
||||
if (sTimer1 > 0) {
|
||||
sTimer1--;
|
||||
}
|
||||
|
@ -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(){
|
||||
|
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user