Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 3,790 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
xbox360 contller and 3dgs #141784
07/17/07 21:36
07/17/07 21:36
Joined: Sep 2005
Posts: 508
Texas
not_me Offline OP
User
not_me  Offline OP
User

Joined: Sep 2005
Posts: 508
Texas
i have a code for using an xbox360 controller with 3dgs. how would i make it work with the A6 template scripts?
code-
-------------------------------------------------------------
//////////////////////////////////////////////////////////////////////////
// //
// * dllfunctions for support of up to 4 'Xbox 360 controllers' * //
// //
// (plugin by DocJoe, Mars, 30th of 2006) //
// //
//////////////////////////////////////////////////////////////////////////

// use values 1, 2, 3 or 4 for vConroller_Number
// sliders values between 1 - 1000
// axis values between -1000 to +1000
// vibration speeds between 0 - 1000
// render and capture guids can be used in combination with DSound

dllfunction Xbox_Avaiable(vConroller_Number); //on - off
dllfunction Xbox_ProductName(vConroller_Number, strProductName); //on - off
dllfunction Xbox_Button_A(vConroller_Number); //on - off
dllfunction Xbox_Button_B(vConroller_Number); //on - off
dllfunction Xbox_Button_X(vConroller_Number); //on - off
dllfunction Xbox_Button_Y(vConroller_Number); //on - off
dllfunction Xbox_Button_LB(vConroller_Number); //on - off
dllfunction Xbox_Button_RB(vConroller_Number); //on - off
dllfunction Xbox_Button_Back(vConroller_Number); //on - off
dllfunction Xbox_Button_Start(vConroller_Number); //on - off
dllfunction Xbox_Button_LT(vConroller_Number); //on - off
dllfunction Xbox_Button_RT(vConroller_Number); //on - off

dllfunction Xbox_Slider_L(vConroller_Number); //0 - 1000
dllfunction Xbox_Slider_R(vConroller_Number); //0 - 1000

dllfunction Xbox_Stick_LX(vConroller_Number); //-1000 - 1000
dllfunction Xbox_Stick_LY(vConroller_Number); //-1000 - 1000
dllfunction Xbox_Stick_RX(vConroller_Number); //-1000 - 1000
dllfunction Xbox_Stick_RY(vConroller_Number); //-1000 - 1000

dllfunction Xbox_POV(vConroller_Number); //-1, 0, 45, 90, 135, 180, 225, 270, 315

dllfunction Xbox_Set_Dead_Zone_L(vConroller_Number, vDead_Value); //on - off
dllfunction Xbox_Set_Dead_Zone_R(vConroller_Number, vDead_Value); //on - off
dllfunction Xbox_Set_Dead_Zone_Sliders(vConroller_Number, vDead_Value); //on - off
dllfunction Xbox_Get_Dead_Zone_L(vConroller_Number); //0 - 2000
dllfunction Xbox_Get_Dead_Zone_R(vConroller_Number); //0 - 2000
dllfunction Xbox_Get_Dead_Zone_Sliders(vConroller_Number); //0 - 1000

dllfunction Xbox_Set_Vibration(vConroller_Number, Speed_Low, Speed_High); //Speeds 0 - 1000

dllfunction Xbox_Get_Audio_GUIDs(vConroller_Number, strRenderString, strCaptureString); //off: no controller
//on: controller avaiable
// render device avaiable
// capture device avaiable
//2: controller avaiable
// render device avaiable
// no capture device avaiable
//3: controller avaiable
// no render device avaiable
// capture device avaiable
//4: controller avaiable
// no render device not avaiable
// no capture device avaiable

define Xbox_controller_1, 1;
define Xbox_controller_2, 2;
define Xbox_controller_3, 3;
define Xbox_controller_4, 4;
define Xbox_controller_all, 0; //set dead zone of all Xbox controller at the same time


-Initiate Games
-Level designer

http://www.sckratchmagazine.com
Re: xbox360 contller and 3dgs [Re: not_me] #141785
07/17/07 21:55
07/17/07 21:55
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
my advice, do not use the code you posted unless you get a better understanding of it. i used the default one in the player input code in the project manager, setting 3 for the xbox 360 controller. you have to tune you model a bit for pan and force in plbiped01 in the project manager as well, but it works like a charm! i even modified my flashlight code and i just realized all the movemet options are on the controller still. conitec has done amazing work for us all!

Re: xbox360 contller and 3dgs [Re: Blink] #141786
07/17/07 21:57
07/17/07 21:57
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
look at all my posts in regards to this issue. after not getting any help, i figured it out on my own. and with some advice i made it work for me.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."

Moderated by  HeelX, rvL_eXile 

Gamestudio download | 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