PauSix

PSP User Input ui.c

Feb 12th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1.  
  2. #include <ui.h>
  3.  
  4. static int lastpad = 0;
  5.  
  6. int getPad() {
  7.     SceCtrlData pad;
  8.     sceCtrlReadBufferPositive(&pad, 1);
  9.     return (lastpad = pad.Buttons);
  10. }
  11.  
  12. int isKeyDown(int pad, int key) {
  13.     return (pad & key) == key
  14. }
Add Comment
Please, Sign In to add comment