Advertisement
PauSix

PSP User Input ui.c

Feb 13th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1.  
  2. #include <pspctrl.h>
  3. #include "ui.h"
  4.  
  5. static SceCtrlData data;
  6.  
  7. int getJX() {
  8.     return data.Lx;
  9. }
  10.  
  11. int getJY() {
  12.     return data.Ly;
  13. }
  14.  
  15. int getPad() {
  16.     return data.Buttons;
  17. }
  18.  
  19. void pollPad() {
  20.     sceCtrlReadBufferPositive(&data, 1);
  21. }
  22.  
  23. int isKeyDown(int pad, int key) {
  24.     return pad & key;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement