Linux では接続した Gamepad の情報を /dev/input/js* から読み取ることができます。 構造体などは /usr/include/linux/joystick.h で定義されており、 具体的な方法は下記ドキュメントの通り。 ・joystick-api.txt int fd= open( "/dev/input/js0", O_RDONLY ); unsigned char ButtonData[BUTTON_DATA_MAX]; signed int StickData[STICK_DATA_MAX]; for(;;){ struct js_event event; if( read( fd, &event, sizeof(struct js_event) ) >= sizeof(struct js_event) ){ switch( event.type & 0x7