From 85971864000c0251cab695f6bcb48ec9ce243a36 Mon Sep 17 00:00:00 2001 From: s <100468871+sctech-tr@users.noreply.github.com> Date: Tue, 16 Jul 2024 18:27:35 +0300 Subject: [PATCH] Add files via upload --- source/main.c | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/source/main.c b/source/main.c index 31892ee..7d5577b 100644 --- a/source/main.c +++ b/source/main.c @@ -27,7 +27,7 @@ int main(int argc, char **argv) { printf("\x1b[2;0H"); int homebutton = 0; // ------------------------------------------- - printf("Text-based Controller Test v0.7-alpha\n"); + printf("Text-based Controller Test v1.1\n"); printf("Welcome! This is a really simple app that allows you to test your controllers\n"); printf("Press the HOME button 3 times to exit.\n"); @@ -117,6 +117,43 @@ int main(int argc, char **argv) { } } + if(exp_type == WPAD_EXP_GUITARHERO3) { + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_STRUM_UP) { + printf("Guitar Hero 3 Controller: Button up pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_STRUM_DOWN) { + printf("Guitar Hero 3 Controller: Button down pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_PLUS) { + printf("Guitar Hero 3 Controller: Button + pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_MINUS) { + printf("Guitar Hero 3 Controller: Button - pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_ORANGE) { + printf("Guitar Hero 3 Controller: Orange button pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_RED) { + printf("Guitar Hero 3 Controller: Red button pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_YELLOW) { + printf("Guitar Hero 3 Controller: Yellow button pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_BLUE) { + printf("Guitar Hero 3 Controller: Blue button pressed.\n"); + } + + if(pressed & WPAD_GUITAR_HERO_3_BUTTON_GREEN) { + printf("Guitar Hero 3 Controller: Green button pressed.\n"); + } + } if(gcpressed & PAD_BUTTON_A) {