mirror of
https://github.com/modmii/SysCheck-ModMii-Edition.git
synced 2024-11-22 08:09:19 +01:00
-Fixed buttons not registering as "held" when scrolling
-Slightly increased the time between switching IOS's (look at the source, I don't know how to explain it)
This commit is contained in:
parent
fede10cef6
commit
ea9a4b28ff
@ -505,7 +505,7 @@ int main(int argc, char **argv)
|
|||||||
while (difftime (time(NULL),starttime) < 15) {
|
while (difftime (time(NULL),starttime) < 15) {
|
||||||
|
|
||||||
wpressed = DetectInput(DI_BUTTONS_HELD);
|
wpressed = DetectInput(DI_BUTTONS_HELD);
|
||||||
usleep(50000);
|
usleep(80000);
|
||||||
|
|
||||||
if (wpressed & WPAD_BUTTON_RIGHT && selectedIOS < (nbTitles-1)){
|
if (wpressed & WPAD_BUTTON_RIGHT && selectedIOS < (nbTitles-1)){
|
||||||
selectedIOS++;
|
selectedIOS++;
|
||||||
|
@ -91,7 +91,7 @@ u32 DetectInput(u8 DownOrHeld) {
|
|||||||
u32 pressed = 0;
|
u32 pressed = 0;
|
||||||
u16 gcpressed = 0;
|
u16 gcpressed = 0;
|
||||||
// Wii Remote (and Classic Controller) take precedence over GC to save time
|
// Wii Remote (and Classic Controller) take precedence over GC to save time
|
||||||
if (WPAD_ScanPads() > WPAD_ERR_NONE) // Scan the Wii remotes. If there any problems, skip checking buttons
|
if (WPAD_ScanPads() >= WPAD_ERR_NONE) // Scan the Wii remotes. If there any problems, skip checking buttons
|
||||||
{
|
{
|
||||||
if (DownOrHeld == DI_BUTTONS_DOWN) {
|
if (DownOrHeld == DI_BUTTONS_DOWN) {
|
||||||
pressed = WPAD_ButtonsDown(0) | WPAD_ButtonsDown(1) | WPAD_ButtonsDown(2) | WPAD_ButtonsDown(3); //Store pressed buttons
|
pressed = WPAD_ButtonsDown(0) | WPAD_ButtonsDown(1) | WPAD_ButtonsDown(2) | WPAD_ButtonsDown(3); //Store pressed buttons
|
||||||
@ -122,7 +122,7 @@ u32 DetectInput(u8 DownOrHeld) {
|
|||||||
if (pressed) return pressed;
|
if (pressed) return pressed;
|
||||||
|
|
||||||
// No buttons on the Wii remote or Classic Controller were pressed
|
// No buttons on the Wii remote or Classic Controller were pressed
|
||||||
if (PAD_ScanPads() > PAD_ERR_NONE)
|
if (PAD_ScanPads() >= PAD_ERR_NONE)
|
||||||
{
|
{
|
||||||
if (DownOrHeld == DI_BUTTONS_HELD) {
|
if (DownOrHeld == DI_BUTTONS_HELD) {
|
||||||
gcpressed = PAD_ButtonsHeld(0) | PAD_ButtonsHeld(1) | PAD_ButtonsHeld(2) | PAD_ButtonsHeld(3); //Store pressed buttons
|
gcpressed = PAD_ButtonsHeld(0) | PAD_ButtonsHeld(1) | PAD_ButtonsHeld(2) | PAD_ButtonsHeld(3); //Store pressed buttons
|
||||||
|
Loading…
Reference in New Issue
Block a user