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.

mbed.bld

Committer:
co838_gtvl2
Date:
2016-02-24
Revision:
1:cb4a1b11de74
Parent:
0:9c531a8dcb06

File content as of revision 1:cb4a1b11de74:

http://mbed.org/users/mbed_official/code/mbed/builds/252557024ec3