| Orion with rapid firing

| Use joystick one for the following functions :

| Rapid fire    - Fire button
| Thrust right  - Stick right
| Thrust left   - Stick left
| Up            - Stick up
| Down          - Stick down
| Hyperspace    - Stir without fire button held
| Smart bomb    - Stir with fire button held 

| Because the thrusting in each direction is
| implemented by simulating the thrust and
| reverse keys it is possible that the joystick
| will loose sync with the game. For example,
| if you die whilst facing left and reappear
| facing right.

| This is corrected by tapping the reverse
| key on the keyboard ie. the space bar.

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

| Define a slow oscillator for rapid firing
setA_1    = ~flagA_1
resetA_1  = flagA_1
setA_2    = ~flagA_2 . flagA_1
resetA_2  = flagA_2  . flagA_1

| Define the "easy" keys
Z         = down_1
A         = up_1
shift     = left_1 + right_1
return    = fire_1 . flagA_2
H         = stir_1 . ~fire_1
tab       = stir_1 . fire_1

| Store current stick direction in flag B_1
resetB_1  = right_1
setB_1    = left_1

| Has the stick reversed direction, if so activate flagB_2
setB_2    = right_1 . flagB_1 + left_1 . ~flagB_1
| Reset flagB_2 when stick is centred
resetB_2  = ~right_1 . ~left_1
| Activate reverse whilst flagB_2 is set
space_bar = flagB_2
