X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Finput.h;fp=src%2Finput.h;h=3ed22a0af0d922f7aa9645ecafd33ff677be3a63;hb=6a650e3e08da161fcebeb9181da60e110893fa8b;hp=0000000000000000000000000000000000000000;hpb=bbe2ec049a812155c75da5ecc303bf3793c9cca8;p=gbajam21 diff --git a/src/input.h b/src/input.h new file mode 100644 index 0000000..3ed22a0 --- /dev/null +++ b/src/input.h @@ -0,0 +1,24 @@ +#ifndef INPUT_H_ +#define INPUT_H_ + +#include + +enum { + BN_A = 0x0001, + BN_B = 0x0002, + BN_SELECT = 0x0004, + BN_START = 0x0008, + BN_RIGHT = 0x0010, + BN_LEFT = 0x0020, + BN_UP = 0x0040, + BN_DOWN = 0x0080, + BN_RT = 0x0100, + BN_LT = 0x0200 +}; + +#define BN_DPAD (BN_RIGHT | BN_LEFT | BN_UP | BN_DOWN) + +void select_input(uint16_t bmask); +uint16_t get_input(void); + +#endif /* INPUT_H_ */