Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ui.h>
- static int lastpad = 0;
- int getPad() {
- SceCtrlData pad;
- sceCtrlReadBufferPositive(&pad, 1);
- return (lastpad = pad.Buttons);
- }
- int isKeyDown(int pad, int key) {
- return (pad & key) == key
- }
Add Comment
Please, Sign In to add comment