| Nevryon with firing lock

| Nevryon has a lot of keys, joystick one is used
| to control almost all of them as follows :

| Fire primary AND secondary    - Fire button
| Send/recall shields           - Stir with fire button held
| Switch primary weapons on/off - Stir without fire button held
| Left                          - Stick left
| Right                         - Stick right
| Up                            - Stick up
| Down                          - Stick down

| Stirring the joystick will set the primary weapons
| firing continuously, stirring the joystick again
| will switch the primary weapons off. The firing
| will be faster than usual when this feature
| is used !

| The gun droids are recalled when you move whilst
| holding down the fire button. This means that
| it is possible to leave the gun droids in a
| particular place by moving there whilst firing
| then moving out of the way without firing.

| The joystick can also be used instead of the
| mouse to select options from the menus.

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

| Define "main" keys for joystick one
X        = right_1
Z        = left_1
/        = down_1
'        = up_1
left_alt = fire_1

| Recall gun droids if moving and firing together
space_bar = fire_1.left_1 + fire_1.right_1 + fire_1.up_1 + fire_1.down_1

| Send/Recall sheilds when stick stirred with fire
left_shift = fire_1 . stir_1

| Track status of stir using flag A_1
setA_1   = stir_1
resetA_1 = ~stir_1
| Toggle flag B_1 when stick stirred without fire
setB_1   = ~flagB_1 . ~fire_1 . stir_1 . ~flagA_1
resetB_1 = flagB_1  . ~fire_1 . stir_1 . ~flagA_1

| Fire primary weapon when B_1 is set OR fire button pressed
return   = flagB_1.flagB_2 + fire_1

| Simulate the mouse with joystick one
left_pointer_8  = left_1
right_pointer_8 = right_1
up_pointer_8    = up_1
down_pointer_8  = down_1
left_button     = fire_1

| Define a slow (12.5Hz) oscillator for the rapid firing
setA_2   = ~flagA_2
resetA_2 = flagA_2
setB_2   = ~flagB_2 . flagA_2
resetB_2 = flagB_2 . flagA_2
