Author Topic: Cougar and mouse view  (Read 539 times)

Offline 214thCavalier

  • Silver Member
  • ****
  • Posts: 1929
Cougar and mouse view
« on: March 14, 2003, 01:36:41 PM »
On Mini Jstick, question is how the hell to get it to work !

Currently i have it set but it operates like an on / off button ie mouse view works but i cannot control the scroll rate at all, this is the section i have in use,

MIX 5 3 (0 25 75 100) (/H X7) ^ (/H X8)
MIY 5 3 (0 25 75 100) (/H X5) ^ (/H X6)
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 KP8
BTN X10 /H KP2
BTN X11 /H KP4
BTN X12 /H KP6

Also this scrolls too slow for me to seriously use it.

No Mtype statements or use microstick as mouse etc.

Tried using Mtype or microstick as mouse statements best option so far seems the mtype a5 as it gives a good controllable variable speed scroll and fast as well.

Only problem is all i can do is get it to scroll the cursor around in AH, no amount of effort will assign mouse view to this.

I have tried setting mouse to view pan etc in AH settings and calibrating moving both the mini J and the mouse but nothing seems to work.

At one point after calibrating and looking at the AH settings for mouse view whilst moving mouse the axis value numbers were responding, I got excited thinking it would work but no another failure.

Now i cannot even get the axis values to respond.

I could really do with getting this to work as using the hats for views is causing some serious pain at the base of my thumb.

To summarise it seems that the cougar is assigning the mini J as mouse and scrolls the cursor fine, my problem seems to be getting AH to accept the mouse input and assigning it to mouse view.

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
Cougar and mouse view
« Reply #1 on: March 16, 2003, 05:45:45 AM »
Could it be that you have to hold any of the mouse-buttons
to access mouse-pan ;) ?
In this case you of course would have to ensure
that the according mouse-button gets pressed and held
as soon as you move the microstick off-center :D !

Offline 214thCavalier

  • Silver Member
  • ****
  • Posts: 1929
Cougar and mouse view
« Reply #2 on: March 16, 2003, 12:07:26 PM »
Thx for reply but yea i had thought of that, tried it and no it did not work.
I cannot get mouse view to work with my mouse or the cougar, driving me nuts.

Plus half the time when i calibrate the controllers the cougar goes GAGA and dumps completely.

This forces me to reflash the cougar, recalibrate etc.
Then i go into AH launch and find cougar dumps out again, i missed 3 out of 4 launches in the CAP event last night because of this crap.

Offline AKIron

  • Plutonium Member
  • *******
  • Posts: 13242
Cougar and mouse view
« Reply #3 on: March 16, 2003, 01:28:04 PM »
Here's a method that works, though not well enough that I use it.

AH doesn't see the microstick axes but does see the range and antenna axes. Since I don't use the range and antenna axes in AH I swap them with the following:

use swap(rng,mix)
use swap(ant,miy)

You can now map these axes to the view pitch and view yaw functions in AH. Be sure to calibrate after mapping. You could also set the microstick button to toggle between f8 and f1. Good luck.
Here we put salt on Margaritas, not sidewalks.

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
Cougar and mouse view
« Reply #4 on: March 16, 2003, 03:14:59 PM »
BTW, no game can "see" the MICROSTICK's axes ;)
because they're no DirectX "standard" analog axes :D !

On the other hand that's not really necessary anyway
because you can set-up up to 50 digital bands
which means 24 bands either direction plus center
and should allow for enough fine-control anyway.

But if you decide to chose the analog way,
you can spare some typing ;) :
Quote
Originally posted by AKIron
use swap(rng,mix)
use swap(ant,miy)

USE SWAP (ROTARIES, MICROSTICK)

Offline Doberman

  • Copper Member
  • **
  • Posts: 272
Cougar and mouse view
« Reply #5 on: March 17, 2003, 08:55:25 AM »
Here's my mouse stick section.  It uses Logical Programming.  (Actually mostly supplied by DonULF in the Cougar World Logical Programming forums before he decided to stop providing help there.)


As I understand it, there's no actual "Mouse View" in AH as of yet.  You must physically toggle the view state to "Pan View" in order to pan around.  (F8 key) You cannot have snap views assigned to your hat and Pan views assigned to the mouse.  (Someone please explain how if this is possible.)

Quote

   Rem -------------------------------
   Rem         Mouse Stick
   Rem -------------------------------
   Rem This section defines the Mouse Stick to normally work
   Rem as a mouse.  When T1 has been pressed with S4 IN,
   Rem the Mouse Stick controls view panning.

   MIX 2 3 (/H X1) (/H X2) (/H X3)
   MIY 2 3 (/H X6) (/H X5) (/H X4)

   DEF X11 X1 AND NOT X10*
   DEF X12 X2 AND NOT X10*
   DEF X13 X3 AND NOT X10*
   DEF X14 X4 AND NOT X10*
   DEF X15 X5 AND NOT X10*
   DEF X16 X6 AND NOT X10*

   BTN X11 MSX(-10)
   BTN X12 MSX(0)
   BTN X13 MSX(10)
   BTN X14 MSY(-10)
   BTN X15 MSY(0)
   BTN X16 MSY(10)

   DEF X21 X1 AND X10*
   DEF X23 X3 AND X10*
   DEF X24 X4 AND X10*
   DEF X26 X6 AND X10*

   BTN X21 /H Look_Left
   BTN X23 /H Look_Right
   BTN X24 /H Look_Forward
   BTN X26 /H Look_Back
   Rem We don't need to define the centers as we're not sending keypresses


BTN T1 /I   /T View_Mode_Pan X10
                 /T View_Mode_Default X10
      /O /H Mouse_LB





If you'd like to adjust the pan rate you can add more flags to the MIX & MIY statements and then change the settings with their definitions.  Say make it 5 instead of 3.  (-14) (-7) (0) (7) (14)  or whatever.

Offline AKIron

  • Plutonium Member
  • *******
  • Posts: 13242
Cougar and mouse view
« Reply #6 on: March 17, 2003, 09:37:21 AM »
That looks interesting. Does it work better than using the stick as analog? I may have to give it a try.

BTW, I just toggle between snap and pan views:

BTN T1 /t F8
            /t F1

Doberman, not sure what you mean when you ask how to map snap views to hat and pan views to stick. Can be done easily, of course you must toggle between pan and snap views for them to work correctly. Is that your question? How to make them work without toggling the view mode?
« Last Edit: March 17, 2003, 09:43:18 AM by AKIron »
Here we put salt on Margaritas, not sidewalks.

Offline 214thCavalier

  • Silver Member
  • ****
  • Posts: 1929
Cougar and mouse view
« Reply #7 on: March 17, 2003, 09:53:16 AM »
Well i dunno i have spent hours trying to get mouse view to work.
The cougar programming is ok for mini stick as i can scroll mouse cursor with it in AH no problem.

What i cannot do is get AH to accept the mouse to control pan view, the joystick input section shows no response at all from mouse movement but the scroll wheel does respond and program ok.

Beats me.

Offline AKIron

  • Plutonium Member
  • *******
  • Posts: 13242
Cougar and mouse view
« Reply #8 on: March 17, 2003, 10:16:08 AM »
Cavalier, if you use the swap command you should see the numbers change when you move the microstick in AH. If ya don't ya won't. They show as x rotation and slider I think.
Here we put salt on Margaritas, not sidewalks.

Offline 214thCavalier

  • Silver Member
  • ****
  • Posts: 1929
Cougar and mouse view
« Reply #9 on: March 17, 2003, 10:21:30 AM »
Well lets forget the cougars mini joystick i cannot even get my mouse to work the pan view, if i could get this working the rest would be easy !
I am not going to swap my range and rotaries as DonUl suggested i already have them programmed for other things.

Also dobermans file fails to work as well.

I begin to think I may need to reinstall AH.

Offline DonULFonso

  • Zinc Member
  • *
  • Posts: 98
      • http://www.Thrustmaster-X-Files.de
Cougar and mouse view
« Reply #10 on: March 17, 2003, 11:48:45 AM »
AFAIK the mouse-view is only available if you've installed the latest patch, right?
I didn't do so yet but use some sort of a split "snap/pan" toggle,
with "snap" assigned to the RADIOSWITCH (since that's the only coolie accessible all the time)
and "pan" being toggled via the SPDBRK (either T9 for temporary or T10 to lock "pan") -
the only tweak necessary (at least if you've got such snobistic a taste as I :D )
is to automatically re-activate "pan" after jumping to a different position,
because the game itself then automatically switches back to the default "snap" operation.

I don't use mouse-pan (yet?) 'cause I didn't patch yet ;) ...
erm, 'cause I need the MICROSTICK to move my head...

Maybe I'll modify these sections a little once I'll have patched,
but I don't really see the need for it yet:
IMHO the MICROSTICK's rather short travel doesn't allow for too much fine-control anyway
(and like I said: I need to assign head movement somewhere ;) )...

(I've got some AH-files ready since early this year
which will be released as soon as TM will have fixed some major bugs :mad:
or I'll have left the rest o' my temper and cut 'em to a size
that's small enough to be successfully downloadable:
at the moment, the Cougar will immediatly disconnect
if a file's compiled size uses more than around 64% of the memory :o !
I for one would hate to skip "goodies" that should work fine
just to work around a known bug:
my "fleet"-mode had taken me quite some time to set it up ;) -
yep, you don't need neither mouse nor keyboard any more:
it's a "HOTAS", remember :D ?! -
so why should I skip it now just to re-implement it later?!?)

P.S.: Doberman, please bear with me that I just couldn't stand the "spirit" I've seen on CW any more -
once I'll have published my AH-files I'll gladly explain any question you might have,
but I'll do it here (or anywhere else), but not on CW...
« Last Edit: March 17, 2003, 06:05:14 PM by DonULFonso »

Offline Doberman

  • Copper Member
  • **
  • Posts: 272
Cougar and mouse view
« Reply #11 on: March 17, 2003, 07:27:29 PM »
Ooops, I made a mistake when commenting about my file.  The MIX statements don't control the rate of pan in "Pan Mode" view.  They just control the rate of mouse speed when using the microstick to control the mouse cursor.  

AKiron, yes I was talking about NOT having to toggle the view mode with F8 & F1.  BTW, the commands I listed just do F8 & F1.  I prefer to have all of my keypresses defined in the .tmm file.  Here's the relevant entries.

View_Mode_Default = F1
View_Mode_Pan = F8


214, I'm not sure that ANY mouse actually can control the view pan.  Which is why we have to define the keypresses onto the mouse stick.

The second set of "DEFs" and "BTN" statements in my snippet is the part that does this after you've toggled Pan View with a press of T1.

Sorry for the confusion.

Offline 214thCavalier

  • Silver Member
  • ****
  • Posts: 1929
Cougar and mouse view
« Reply #12 on: March 18, 2003, 01:14:51 PM »
Well getting somewhere at last.
Deleted AH and downloaded the latest full version, now at least using the keypad i get the mouse pan effect (did not work at all before reinstall).

Update,

OK got it working use Mtype A5 after complete reinstall of AH, now if i had known that it only works when in a vehicle of some type and not in the tower it may have saved some time :)

Using mtype A5 it scrolls fast and smooth.

Doberman my normal mouse and the cougars mini Joystick both work the mouse view fine at last.
The only other thing programmed is toggle F8 and normal view to T1.
« Last Edit: March 20, 2003, 07:44:31 PM by 214thCavalier »