Game-Controller Achsen

Posted By: IngoS.

Game-Controller Achsen - 09/13/08 18:30

Hallo,
ich möchte in meinem Optionsmenü dem User selbst die Achsen des Controllers definieren lassen. Dazu frage ich im Setup die folgenden Vectoren ab:

joy_raw, joy_rot, joy2_raw, joy2_rot

Nun stelle ich bei meinem Controller (2 Hebel) fest das joy_rot.y und auch joy_rot.z ständig den Wert -255 haben, also nicht auf 0 sind. Somit kann ich diese Achsen nicht abfragen, um zu erkennen ob sie aktiv sind oder nicht.

Was mache ich falsch?

Danke im vorraus - Ingo.
Posted By: Proton_games

Re: Game-Controller Achsen - 09/14/08 13:01

Hey sprech mal lieber englisch dann kriegste eher Hilfe !
_____________________________________________________


Hello,
I want my menu option the user to define the axes of the controller. For this I ask the vectors setup from the following:

joy_raw, joy_rot, joy2_raw, joy2_rot


Well, I am with my controller (2 Lever) and the joy_rot.y also constantly joy_rot.z the value -255, not to 0. Thus, I can not retrieve these axes, to detect whether they are active or not.

What am I doing wrong?

Thank you in advance - Ingo

Sei mir dankbar wink XD
Posted By: Anonymous

Re: Game-Controller Achsen - 09/14/08 13:30

@Proton_games:

Just let google translate, does not mean its correct english. wink The english above it totally wrong.

I hope I translated everything right:

Hello,
In my optionsmenu I want to let the user define the axes of the gamecontroller.
For this I get info in the Setup about the following vectors

joy_raw, joy_rot, joy2_raw, joy2_rot

Now I notice that with my controller(2 Levers) joy_rot.y and also joy_rot.z always have the value -255, and not 0. So i cant detect, if the axes are active or not

What I am doing wrong?

Thanks in advance - Ingo
Posted By: IngoS.

Re: Game-Controller Achsen - 09/15/08 08:28

Hello Proton_Games and Fear411
thank for your spontaneous help.
Yes, my English is very bad.
I question on all axes when opening the options now.
When opening the menu these aren't 0 the one cannot be defined.
Perhaps somebody still has a better solution.

Hallo Proton_Games und Fear411,
danke für Eure spontane Hilfe.
Naja, mein Englisch ist sehr schlecht.
Ich frage jetzt beim Öffnen der Optionen alle Achsen ab.
Diejenigen die beim Öffnen des Menüs nicht 0 sind können nicht definiert werden.
Vielleicht hat noch jemand eine bessere Lösung.

- Ingo
© 2024 lite-C Forums