「int sceCtrlReadBufferPositive(SceCtrlData *pad_data, int count);」の編集履歴(バックアップ)一覧に戻る

int sceCtrlReadBufferPositive(SceCtrlData *pad_data, int count); - (2008/12/10 (水) 01:15:55) の編集履歴(バックアップ)


機能

コントローラーの押されてるボタンを調べます。

API

int sceCtrlReadBufferPositive(SceCtrlData *pad_data, int count);
pspctrl.hより

第一引数

pspctrl.h内で定義されてるSceCtrlDataのポインタを
わたす。
/** Returned controller data */
typedef struct SceCtrlData {
/** The current read frame. */
unsigned int 	TimeStamp;
/**  押されてるボタンのデータPspCtrlButtonsのフラグを使う */
unsigned int 	Buttons;
/** アナログスティックの X axis. */
unsigned char 	Lx;
/** アナログスティックの Y axis. */
unsigned char 	Ly;
/** 予約してある つかうなこのやろー */
unsigned char 	Rsrv[6];
} SceCtrlData;