ok.
There is a config dialog. You can map each input to an OI pin.
The inputs are:
- Mouse X, Y, H, V (scroll wheel)
- Mouse buttons (1-5)
- Keyboard buttons (include alt, ctrl, shift, win?)
- Joystick axis 1-6
- Joystick buttons 1-32
- possibly dashboard/RC
1, 4, 6 are analog; 2, 3, 5, 6 are digital
Mouse XY can be based on position or rate of movement.
the conversion between analog/digital is actually pretty simple. It's based on a value.
- in A>D, the value is a threshold. below = unpressed, above = pressed. also can make an axis do 2 buttons, one above center, one below.
- in D>A, the value is a number. (eg if Key=pressed then axis=number)
so how this all works together is that the sources map to OI inputs (16 axis, 16 buttons). These values are fed to the robot. presto! controls done.
As for connecting to the OI/RC, I have 2 ideas:
- use the dashboard port and set it to send OI data
- connect to the prog port on the RC and have it send the values. (in a 20 byte packet). I could write a program to do that, I think.
obviously, the OI setup would map directly to the inputs.
suddenly, every one of our computers have 4 more wireless gameports.