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.

Committer:
co838_gtvl2
Date:
Wed Feb 24 19:55:15 2016 +0000
Revision:
0:9c531a8dcb06
If poked via Serial, it displays the current state of the accelerometer.; Uses sleep and interrupt to save energy.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
co838_gtvl2 0:9c531a8dcb06 1 http://mbed.org/users/JimCarver/code/FXOS8700Q/#5553a64d0762