Using the FCB1010 as a keyboard extension

footware is a tiny program that lets you use a midi-input device as a pc-keyboard extension.

It is called footware because I use it with a 'Foot Controller FCB1010' by Behringer.

By the way - you need an x-window system for this... a standard linux will do ;o)

I have configured five ot the ten pedals of the FCB1010 to help my hands (especially my pinkies ;o) to type inside vim...

EscShiftCtrlEnd and Alt can now be triggered by my lazy feet.

You can map midi-notes to different keys inside the sourcefile...
I don't think it necessary to use an extra config file since the whole program is only a little longer now than a config file would be ;o)

To map note number 35 to an additional Escape-Key use this:

  • case 35: result = XTestFakeKeyEvent( pDisplay, XKeysymToKeycode( pDisplay, XK_Escape), inpacket[1], CurrentTime );

You can add more notes into the case statement...
To find the correct name for the key you want to emulate, look it up in keysymdef.h
(probably /usr/include/X11/keysymdef.h)...

To compile footware download footware.tar.bz2 and simply try:

  • make

If there are some problems, you may have to change some directories in the Makefile...