mirror of
https://github.com/FIX94/libwiidrc.git
synced 2024-11-22 17:49:20 +01:00
added in sync button
This commit is contained in:
parent
5f5b35f419
commit
8e4a585b8c
@ -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");
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user