| Two player Chocks Away with map/throttle

| Each player uses a joystick which can have two
| 'states', stirring will switch between states.

| In the first state up,down,left,right and fire
| behave as normal.

| In the other state the fire button is used in
| conjunction with a movement of the stick to
| operate the secondary keyboard controls :

| Fire plus left/right     - Map on/off
| Fire plus up/down        - Thottle up/down

|---------------------------------------------------

| Keep track of stir_1 in flagA_1
setA_1    =  stir_1
resetA_1  = ~stir_1
| Toggle flagB_1 when stir_1 is detected
setB_1    = ~flagB_1.stir_1.~flagA_1
resetB_1  =  flagB_1.stir_1.~flagA_1

| Keep track of stir_2 in flagA_2
setA_2    =  stir_2
resetA_2  = ~stir_2
| Toggle flagB_2 when stir_2 is detected
setB_2    = ~flagB_2.stir_2.~flagA_2
resetB_2  =  flagB_2.stir_2.~flagA_2

| Define normal movement keys for joystick one
E         = ~flagB_1.left_1  + ~fire_1.left_1
R         = ~flagB_1.right_1 + ~fire_1.right_1
A         = ~flagB_1.down_1  + ~fire_1.down_1
Q         = ~flagB_1.up_1    + ~fire_1.up_1
T         = ~flagB_1.fire_1

| Define special keys for joystick one
1         = flagB_1.fire_1.left_1
2         = flagB_1.fire_1.right_1
tab       = flagB_1.fire_1.down_1
`         = flagB_1.fire_1.up_1

| Define normal movement keys for joystick two
num_7     = ~flagB_2.left_2  + ~fire_2.left_2
num_8     = ~flagB_2.right_2 + ~fire_2.right_2
num_+     = ~flagB_2.down_2  + ~fire_2.down_2
num_-     = ~flagB_2.up_2    + ~fire_2.up_2
enter     = ~flagB_2.fire_2

| Define special keys for joystick two
num_#     = flagB_2.fire_2.left_2
num_*     = flagB_2.fire_2.right_2
copy      = flagB_2.fire_2.down_2
page_down = flagB_2.fire_2.up_2
