Ferrari a class for playing with the Thrustmaster Ferrari GamePad
Ferrari is a subclass of GamePad. It knows the cookie numbers for the
Thrustmaster Ferrari game controller.
It knows how the scale the ctl values into a range of 0 - 1:
GamePad.normMaps[Ferrari.vendorID].postcs;
*** Ferrari has the bottom fire Buttons REALLY on the bottom!
*** Ferrari has the following free controls for proxies:
\midL -> 10, // middle shift buttons
\midR -> 11,
\lHat -> 12, // hat switches on joysticks
\rHat -> 13,
\joyLX -> 15, // joystick left x-axis (horizontal) left is 255, right 0!
\joyLY -> 16, // joy left y-axis, up is 255.
\joyRX -> 17, // joystick right x-axis (horizontal) left is 255, right 0!
\joyRY -> 20, // joy right x-axis, left is 127, right is -128!
// Ferrari's extra analog controls:
\throtL -> 18, // joy left y-axis, up is 255.
\throtR -> 19, // joystick right x-axis (horizontal) left is 255, right 0!
\wheel -> 21, // joy right x-axis, left is 127, right is -128!
ToDo: a test patch that uses them all...
A documentation image for the GamePad control layout,
as used in the now historical Bejing setup:
unixCmd("open" + Document.current.path.dirname.quote +/+ "impact.jpg");