Does anyone know how to program the microstick axis (i.e. the mouse thingy ) to generate keypresses rather then acting like a mouse to drive a cursor? I'm having a heck of a time figgering this one out. Thanks in advance!
You should look at the Cougar programming forums at
Cougar World, particularly DonULFonso's posts in the Logical Programming forum. The thread
MICROSTICK: DIGITAL 8 + 8 - way operation shows a
very detailed reprogramming of the microstick to produce digital output.
My own setup for AH isn't anywhere near as complicated. I have two sets of view functions programmed into my Cougar. Hat 3 functions for snap views -- level with forward/up, raised 45° if I hold in S3 (H3U becoming straight up), 45° down if I hold in S4. The microstick functions for pan views -- hold in T1 and the microstick pans the view. The program for this is:
Rem ------------------------------------------
Rem Hat 3: Views. S3 adds up, S4 adds down
Rem ------------------------------------------
Rem ............-45° (control panel view)
Rem ............+90°
Rem ............+45°
Rem ....+45°...(FWD)...+45°
Rem ....LftFwd...|...RgtFwd
Rem ....-45°..\..|../..-45°
Rem +45°.......\.|./........+45° -> +S3 = +45°
Rem LFT --------H+1-------- RGT
Rem -45°......./.|.\........-45° -> +S4 = -45°
Rem ....+45°../..|..\..+45°
Rem ....LftBwd...|...RgtBwd
Rem ....-45°...(Fwd)...-45°
Rem ............+45°
Rem ............-45°
DEF X1 (H3U AND NOT S3)
DEF X2 (S4 AND (NOT S3) AND (H3U OR H3UR OR H3R OR H3DR OR H3D OR H3DL OR H3L OR H3UL))
DEF X3 (S3 AND (H3U OR H3UR OR H3R OR H3DR OR H3D OR H3DL OR H3L OR H3UL)) OR (H3U AND (NOT (H3UL OR H3UR)))
DEF X4 (H3U OR H3UR OR H3R OR H3DR OR H3D OR H3DL OR H3L OR H3UL)
BTN X4 F1
BTN X1 /H KP8 REM Fwd
BTN H3UR /H KP9 REM Fwd_Rgt
BTN H3R /H KP6 REM Rgt
BTN H3DR /H KP3 REM Bwd_Rgt
BTN H3D /H KP2 REM Back
BTN H3DL /H KP1 REM Bwd_Lft
BTN H3L /H KP4 REM Lft
BTN H3UL /H KP7 REM Fwd_Lft
BTN X2 /H KP0 REM Down
BTN X3 /H KP5 REM Up
Rem ------------------------------------
Rem Throttle Controls
Rem ------------------------------------
MIX 5 3 (0 25 75 100) X5 ^ X6
MIY 5 3 (0 25 75 100) X7 ^ X8
BTN T1 F8
DEF X9 (X5 AND T1)
DEF X10 (X6 AND T1)
DEF X11 (X7 AND T1)
DEF X12 (X8 AND T1)
BTN X9 /H KP2
BTN X10 /H KP8
BTN X11 /H KP6
BTN X12 /H KP4
I redefine the microstick axes with Type 5 commands to set logical flags in the outer 25% of travel so that it's easier to be stable while panning the view, then use those flags to set another set of flags only if I'm holding T1 (the microstick switch) in at the same time, and
those flags control the view keys. Pressing T1, however, switches from snap to pan, so that any microstick movement with the microstick button pressed pans the view. The flag X4, which is set if H3 is moved off center, switches back to snap view, so I can switch between pan and snap views just by which view control I'm using.