It is limited for now, hard coded to mine. Still need some sort of way
to specify which button to map to the emulated joytick. Same with the
axis, currently default to 0,1
Signed-off-by: Michel Pollet <buserror@gmail.com>
Seems there are no leaks; only blocks left non-freed are the queue of
drivers, which is static anyway
Also added a MII_TERMINATE state to quit any 'main' loop.
Signed-off-by: Michel Pollet <buserror@gmail.com>
These are fetched often, so might as well cache them into a bitfield,
also removed the old BSR state, as it might as well be in that bitfield.
Converted all the user of these soft switches to this new bitfield.
Signed-off-by: Michel Pollet <buserror@gmail.com>