lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
395 B

  1. #ifndef GBSDK_JOYPAD_H
  2. #define GBSDK_JOYPAD_H
  3. #include <stdint.h>
  4. #define PAD_DOWN 0x80
  5. #define PAD_UP 0x40
  6. #define PAD_LEFT 0x20
  7. #define PAD_RIGHT 0x10
  8. #define PAD_START 0x08
  9. #define PAD_SELECT 0x04
  10. #define PAD_B 0x02
  11. #define PAD_A 0x01
  12. extern uint8_t joypad_state;
  13. extern uint8_t joypad_pressed;
  14. void joypad_update(void) __preserves_regs(b, c);
  15. #endif//GBSDK_JOYPAD_H