added in sync button

This commit is contained in:
FIX94 2017-09-23 19:21:54 +02:00
parent 5f5b35f419
commit 8e4a585b8c
No known key found for this signature in database
GPG Key ID: CE39016A19D8EADA
2 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@ int main(int argc, char *argv[])
if(drcdat->button & WIIDRC_BUTTON_PLUS) printf("Plus pressed\n"); if(drcdat->button & WIIDRC_BUTTON_PLUS) printf("Plus pressed\n");
if(drcdat->button & WIIDRC_BUTTON_MINUS) printf("Minus pressed\n"); if(drcdat->button & WIIDRC_BUTTON_MINUS) printf("Minus pressed\n");
if(drcdat->button & WIIDRC_BUTTON_HOME) printf("HOME pressed\n"); if(drcdat->button & WIIDRC_BUTTON_HOME) printf("HOME pressed\n");
if(drcdat->button & WIIDRC_BUTTON_SYNC) printf("SYNC pressed\n");
if(drcdat->extra & WIIDRC_EXTRA_BUTTON_L3) printf("L3 pressed\n"); if(drcdat->extra & WIIDRC_EXTRA_BUTTON_L3) printf("L3 pressed\n");
if(drcdat->extra & WIIDRC_EXTRA_BUTTON_R3) printf("R3 pressed\n"); if(drcdat->extra & WIIDRC_EXTRA_BUTTON_R3) printf("R3 pressed\n");
if(drcdat->extra & WIIDRC_EXTRA_BUTTON_TV) printf("TV pressed\n"); if(drcdat->extra & WIIDRC_EXTRA_BUTTON_TV) printf("TV pressed\n");

View File

@ -35,6 +35,7 @@ struct WiiDRCData {
#define WIIDRC_BUTTON_PLUS 0x0008 #define WIIDRC_BUTTON_PLUS 0x0008
#define WIIDRC_BUTTON_MINUS 0x0004 #define WIIDRC_BUTTON_MINUS 0x0004
#define WIIDRC_BUTTON_HOME 0x0002 #define WIIDRC_BUTTON_HOME 0x0002
#define WIIDRC_BUTTON_SYNC 0x0001
#define WIIDRC_EXTRA_BUTTON_L3 0x80 #define WIIDRC_EXTRA_BUTTON_L3 0x80
#define WIIDRC_EXTRA_BUTTON_R3 0x40 #define WIIDRC_EXTRA_BUTTON_R3 0x40