Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <pspctrl.h>
- #include "ui.h"
- static SceCtrlData data;
- int getJX() {
- return data.Lx;
- }
- int getJY() {
- return data.Ly;
- }
- int getPad() {
- return data.Buttons;
- }
- void pollPad() {
- sceCtrlReadBufferPositive(&data, 1);
- }
- int isKeyDown(int pad, int key) {
- return pad & key;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement