Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 636 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
XBox 360 controller LT, RT value? #188434
03/14/08 17:10
03/14/08 17:10
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline OP
User
Frederick_Lim  Offline OP
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
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


Last edited by Frederick_Lim; 03/14/08 17:14.
Re: XBox 360 controller "Point of view hat? [Re: Frederick_Lim] #188435
03/15/08 02:23
03/15/08 02:23
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline OP
User
Frederick_Lim  Offline OP
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Now I have another question, how to read the "Hat" value? I can't find any engine function support it.

Re: XBox 360 controller "Point of view hat? [Re: Frederick_Lim] #188436
03/15/08 09:21
03/15/08 09:21
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
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!)

Re: XBox 360 controller "Point of view hat? [Re: Scorpion] #188437
03/16/08 11:18
03/16/08 11:18
Joined: Aug 2007
Posts: 44
QLD, Australia
Serex Offline
Newbie
Serex  Offline
Newbie

Joined: Aug 2007
Posts: 44
QLD, Australia
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);



Re: XBox 360 controller "Point of view hat? [Re: Serex] #188438
03/16/08 12:40
03/16/08 12:40
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Is the Engine able to use a PS3 Controller??? ( with USB cable )


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: XBox 360 controller "Point of view hat? [Re: Espér] #188439
03/16/08 13:28
03/16/08 13:28
Joined: Aug 2007
Posts: 44
QLD, Australia
Serex Offline
Newbie
Serex  Offline
Newbie

Joined: Aug 2007
Posts: 44
QLD, Australia
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.

Re: XBox 360 controller "Point of view hat? [Re: Serex] #188440
03/16/08 14:04
03/16/08 14:04
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
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 ).


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: XBox 360 controller "Point of view hat? [Re: Espér] #188441
03/16/08 22:05
03/16/08 22:05
Joined: Aug 2007
Posts: 44
QLD, Australia
Serex Offline
Newbie
Serex  Offline
Newbie

Joined: Aug 2007
Posts: 44
QLD, Australia
If i can get my hands on a ps3 controller ill do some tests for you.

Re: XBox 360 controller "Point of view hat? [Re: Serex] #188442
03/17/08 00:06
03/17/08 00:06
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
thx


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: XBox 360 controller "Point of view hat? [Re: Serex] #188443
03/17/08 02:31
03/17/08 02:31
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline OP
User
Frederick_Lim  Offline OP
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Wow! Thanks. I don't know there is joy_hat, will test that tonight.

Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1