You can use your FRDM-K64F device as a joypad.

Dependencies:   FXOS8700Q mbed

Check my repo for a compatible game using K64F. Currently works on Max OSX, can be implemented on Linux by changing Serial Port configuration.

History

Added 5 way Joystick support. (configured for horizontal use) default tip

2016-02-24, by co838_gtvl2 [Wed, 24 Feb 2016 20:40:54 +0000] rev 1

Added 5 way Joystick support. (configured for horizontal use)


If poked via Serial, it displays the current state of the accelerometer.; Uses sleep and interrupt to save energy.

2016-02-24, by co838_gtvl2 [Wed, 24 Feb 2016 19:55:15 +0000] rev 0

If poked via Serial, it displays the current state of the accelerometer.; Uses sleep and interrupt to save energy.