#define PORT_ACT_LEFT       1
#define PORT_ACT_RIGHT      2
#define PORT_ACT_FWD        3
#define PORT_ACT_BACK       4
#define PORT_ACT_LOOK_UP    5
#define PORT_ACT_LOOK_DOWN  6
#define PORT_ACT_MOVE_LEFT  7
#define PORT_ACT_MOVE_RIGHT 8
#define PORT_ACT_STRAFE     9
#define PORT_ACT_SPEED      10
#define PORT_ACT_USE        11
#define PORT_ACT_JUMP       12
#define PORT_ACT_ATTACK     13
#define PORT_ACT_UP         14
#define PORT_ACT_DOWN       15

#define PORT_ACT_NEXT_WEP   16
#define PORT_ACT_PREV_WEP   17

//Quake2
#define PORT_ACT_INVEN     18
#define PORT_ACT_INVUSE    19
#define PORT_ACT_INVDROP   20
#define PORT_ACT_INVPREV   21
#define PORT_ACT_INVNEXT   22
#define PORT_ACT_HELPCOMP  23 //also RTCW, also Strife

//Doom
#define PORT_ACT_MAP         30
#define PORT_ACT_MAP_UP      31
#define PORT_ACT_MAP_DOWN    32
#define PORT_ACT_MAP_LEFT    33
#define PORT_ACT_MAP_RIGHT   34
#define PORT_ACT_MAP_ZOOM_IN 35
#define PORT_ACT_MAP_ZOOM_OUT 36
#define PORT_ACT_ALWAYS_RUN  37

//RTCW
#define PORT_ACT_ZOOM_IN    50 //Also used for Quake 3 zoom
#define PORT_ACT_ALT_FIRE   51
#define PORT_ACT_RELOAD     52
#define PORT_ACT_QUICKSAVE  53
#define PORT_ACT_QUICKLOAD  54
#define PORT_ACT_KICK       56
#define PORT_ACT_LEAN_LEFT  57
#define PORT_ACT_LEAN_RIGHT 58

//JK2
//#define PORT_ACT_FORCE_LIGHTNING 60
//#define PORT_ACT_SABER_BLOCK     62
//#define PORT_ACT_FORCE_GRIP      63
#define PORT_ACT_ALT_ATTACK      64
#define PORT_ACT_NEXT_FORCE      65
#define PORT_ACT_PREV_FORCE      66
#define PORT_ACT_FORCE_USE       67
#define PORT_ACT_DATAPAD         68
#define PORT_ACT_FORCE_SELECT    69
#define PORT_ACT_WEAPON_SELECT   70
#define PORT_ACT_SABER_STYLE     71
#define PORT_ACT_SAVE_MENU       72 //NOT USED
#define PORT_ACT_LOAD_MENU       73 //NOT USED
#define PORT_ACT_THIRD_PERSON    74

#define PORT_ACT_FORCE_PULL      75
#define PORT_ACT_FORCE_MIND      76
#define PORT_ACT_FORCE_LIGHT     77
#define PORT_ACT_FORCE_HEAL      78
#define PORT_ACT_FORCE_GRIP      79
#define PORT_ACT_FORCE_SPEED     80
#define PORT_ACT_FORCE_PUSH      81

//JK3
#define PORT_ACT_FORCE_DRAIN     82
#define PORT_ACT_FORCE_RAGE      83
#define PORT_ACT_FORCE_PROTECT   84
#define PORT_ACT_FORCE_ABSORB    85
#define PORT_ACT_FORCE_SIGHT     86

#define PORT_ACT_SABER_SEL       87 //Just chooses weapon 1 so show/hide saber.
#define PORT_ACT_MP_CHAT         88
#define PORT_ACT_MP_SCORES       89
#define PORT_ACT_MP_DUEL         90


//Choloate
#define PORT_ACT_GAMMA              90
#define PORT_ACT_SHOW_WEAPONS       91
#define PORT_ACT_SHOW_KEYS          92
#define PORT_ACT_FLY_UP             93
#define PORT_ACT_FLY_DOWN           94
#define PORT_ACT_FLY_CENTER         95


#define PORT_ACT_WEAP0              100
#define PORT_ACT_WEAP1              101
#define PORT_ACT_WEAP2              102
#define PORT_ACT_WEAP3              103
#define PORT_ACT_WEAP4              104
#define PORT_ACT_WEAP5              105
#define PORT_ACT_WEAP6              106
#define PORT_ACT_WEAP7              107
#define PORT_ACT_WEAP8              108
#define PORT_ACT_WEAP9              109
#define PORT_ACT_WEAP10             110
#define PORT_ACT_WEAP11             111
#define PORT_ACT_WEAP12             112
#define PORT_ACT_WEAP13             113


//Descent
#define PORT_ACT_CYCLE_PRIM        120
#define PORT_ACT_CYCLE_SEC         121
#define PORT_ACT_FIRE_FLARE        122
#define PORT_ACT_FIRE_BOMB         123
#define PORT_ACT_AFTERBURNER       124
#define PORT_ACT_HEADLIGHT         125
#define PORT_ACT_ENERGY_SHIELD     126
#define PORT_ACT_COCKPIT_VIEW      127
#define PORT_ACT_VERT_UP           128
#define PORT_ACT_VERT_DOWN         129
#define PORT_ACT_BANK_LEFT         130
#define PORT_ACT_BANK_RIGHT        131




#define PORT_ACT_MENU_UP                  0x200
#define PORT_ACT_MENU_DOWN                0x201
#define PORT_ACT_MENU_LEFT                0x202
#define PORT_ACT_MENU_RIGHT               0x203
#define PORT_ACT_MENU_SELECT              0x204
#define PORT_ACT_MENU_BACK                0x205

#define LOOK_MODE_MOUSE    0
#define LOOK_MODE_ABSOLUTE 1
#define LOOK_MODE_JOYSTICK 2




