XBox 360 controller LT, RT value?

Posted By: Frederick_Lim

XBox 360 controller LT, RT value? - 03/14/08 17:10

How to read the LT and RT value of 360 controller?

Oh I just figure out, it is the z-axis so it is joy_raw.z

Posted By: Frederick_Lim

Re: XBox 360 controller "Point of view hat? - 03/15/08 02:23

Now I have another question, how to read the "Hat" value? I can't find any engine function support it.
Posted By: Scorpion

Re: XBox 360 controller "Point of view hat? - 03/15/08 09:21

If I remember here was a dll floating around that supported the 360 controller inclusive rumbling...but I don't find a link (ARgh, that search function drives me crazy!)
Posted By: Serex

Re: XBox 360 controller "Point of view hat? - 03/16/08 11:18

All xb360 controls are accessed via the joy_ engine call. Testing the control found the following.

Code:

FONT* fHeadingFont = "Tahoma#14b";
FONT* fInfoFont = "Verdana#12";

// Joypad Debug Information
digits(400,143,"Joypad Information",fHeadingFont,1,"");
digits(412,162,"A:",fInfoFont,1,"");
digits(412,172,"B:",fInfoFont,1,"");
digits(412,182,"X:",fInfoFont,1,"");
digits(412,192,"Y:",fInfoFont,1,"");
digits(412,212,"numpad:",fInfoFont,1,"");
digits(412,222,"back:",fInfoFont,1,"");
digits(412,232,"start:",fInfoFont,1,"");
digits(412,252,"left_joy.x:",fInfoFont,1,"");
digits(412,262,"left_joy.y:",fInfoFont,1,"");
digits(412,272,"left_joy.p:",fInfoFont,1,"");
digits(412,292,"right_joy.x:",fInfoFont,1,"");
digits(412,302,"right_joy.y:",fInfoFont,1,"");
digits(412,312,"right_joy.p:",fInfoFont,1,"");
digits(412,332,"triggers:",fInfoFont,1,"");
digits(412,352,"lb:",fInfoFont,1,"");
digits(412,362,"rb",fInfoFont,1,"");
digits(412,382,"force:",fInfoFont,1,"");
digits(412,402,"num_joys:",fInfoFont,1,"");
// Data
digits(474,162,"%.0f",fInfoFont,1,joy_1);
digits(474,172,"%.0f",fInfoFont,1,joy_2);
digits(474,182,"%.0f",fInfoFont,1,joy_3);
digits(474,192,"%.0f",fInfoFont,1,joy_4);
digits(474,212,"%.0f",fInfoFont,1,joy_hat);
digits(474,222,"%.0f",fInfoFont,1,joy_7);
digits(474,232,"%.0f",fInfoFont,1,joy_8);
digits(474,252,"%.0f",fInfoFont,1,joy_raw.x);
digits(474,262,"%.0f",fInfoFont,1,joy_raw.y);
digits(474,272,"%.0f",fInfoFont,1,joy_9);
digits(474,292,"%.0f",fInfoFont,1,joy_rot.x);
digits(474,302,"%.0f",fInfoFont,1,joy_rot.y);
digits(474,312,"%.0f",fInfoFont,1,joy_10);
digits(474,332,"%.0f",fInfoFont,1,joy_raw.z);
digits(474,352,"%.0f",fInfoFont,1,joy_5);
digits(474,362,"%.0f",fInfoFont,1,joy_6);
digits(474,382,"%.0f",fInfoFont,1,joy_force);
digits(474,402,"%.0f",fInfoFont,1,num_joysticks);


Posted By: Espér

Re: XBox 360 controller "Point of view hat? - 03/16/08 12:40

Is the Engine able to use a PS3 Controller??? ( with USB cable )
Posted By: Serex

Re: XBox 360 controller "Point of view hat? - 03/16/08 13:28

Wouldn't they just get picked up with the joy_ commands as well? with limited usability of course, as mentioned above you would need to use some sort of external dll to access things like rumble.
Posted By: Espér

Re: XBox 360 controller "Point of view hat? - 03/16/08 14:04

rumble isn´t important.. because a PS3 Controller.. has no Rumble Feature ^^
the only things i need are the normal key.. + the Joystick Keys ( L3 and R3 ).
Posted By: Serex

Re: XBox 360 controller "Point of view hat? - 03/16/08 22:05

If i can get my hands on a ps3 controller ill do some tests for you.
Posted By: Espér

Re: XBox 360 controller "Point of view hat? - 03/17/08 00:06

thx
Posted By: Frederick_Lim

Re: XBox 360 controller "Point of view hat? - 03/17/08 02:31

Wow! Thanks. I don't know there is joy_hat, will test that tonight.
Posted By: DocJoe

Re: XBox 360 controller LT, RT value? - 03/17/08 07:36

If you wanna control all the XBox controller functions (including vibration): XBox Controller DLL with sample.
Here the contribution thread: XBox 360 controller contribution site
Posted By: Frederick_Lim

Re: XBox 360 controller LT, RT value? - 03/17/08 14:34

Yeah I can use joy_hat value now, curious why that's not document in manual, any why no vibration support.

I will try the dll later. Many thanks!

Is that dll compatible with A7?
© 2024 lite-C Forums