Xbox 360 Controller Library
#41
Posted 12 July 2008 - 05:16 AM
#42
Posted 12 July 2008 - 06:24 AM
#43
Posted 12 July 2008 - 04:17 PM
#44
Posted 13 July 2008 - 06:40 AM
// xbox_controller_init(); globalvar XB_A, XB_B, XB_X, XB_Y, XB_RTHUMB, XB_LTHUMB, XB_RSHOULDER, XB_LSHOULDER; globalvar XB_RTRIGGER, XB_LTRIGGER, XB_BACK, XB_START XB_DPAD; XB_A = 1; XB_B = 2; XB_X = 3; XB_Y = 4; XB_RTHUMB_X = 5; XB_RTHUMB_Y = 6; XB_LTHUMB_X = 7; XB_LTHUMB_Y = 8; XB_RSHOULDER = 9; XB_LSHOULDER = 10; XB_RTRIGGER = 11 XB_LTRIGGER = 12; XB_BACK = 13; XB_START = 14; XB_DPAD = 15; XB_LTHUMB_B = 16; XB_RTHUMB_B = 17;
// xbox_controller_check(id,button);
// Returns the data concerning the button given
switch argument1
{
case XB_A : return joystick_check_button(argument0,1);
case XB_B : return joystick_check_button(argument0,2);
case XB_X : return joystick_check_button(argument0,3);
case XB_Y : return joystick_check_button(argument0,4);
case XB_RTHUMB_X : return joystick_rpos(argument0);
case XB_RTHUMB_Y : return joystick_upos(argument0);
case XB_LTHUMB_X : return joystick_xpos(argument0);
case XB_LTHUMB_Y : return joystick_ypos(argument0);
case XB_LTHUMB_B : return joystick_check_button(argument0,9);
case XB_RTHUMB_B : return joystick_check_button(argument0,10);
case XB_RSHOULDER : return joystick_check_button(argument0,6);
case XB_LSHOULDER : return joystick_check_button(argument0,5);
case XB_RTRIGGER : if joystick_zpos(argument0) > 0 then
{ return joystick_zpos(argument0); } else { return 0; }
case XB_LTRIGGER : if joystick_zpos(argument0) < 0 then
{ return abs(joystick_zpos(argument0)); } else { return 0; }
case XB_BACK : return joystick_check_button(argument0,7);
case XB_START : return joystick_check_button(argument0,8);
case XB_DPAD : return joystick_pov(argument0);
}
Edited by RabbidMickeyMouse, 13 July 2008 - 06:44 AM.
#45
Posted 15 July 2008 - 06:18 AM
#46
Posted 16 July 2008 - 04:02 PM
http://www.megaupload.com/?d=T6MGGFKJ
Hope i dont have broken some rules. the commands are xb_(whatever) when i search for the Xbox controller setting i just do xbox, and it Shows!
#47
Posted 21 July 2008 - 10:40 PM
#48
Posted 16 September 2008 - 11:15 AM
#49
Posted 17 September 2008 - 07:19 AM
Since the scripts simply wrap Game Maker's joystick functions, you still have a maximum of two.I know Game Maker only supports two joysticks at a time. Does this limitation apply to 360 controllers as well? If so, is there any way around it?
#50
Posted 01 October 2008 - 08:29 PM
#51
Posted 05 October 2008 - 07:48 PM
#52
Posted 02 November 2008 - 01:12 PM
but your librarie has more moves so thanks for posting it....
#53
Posted 29 November 2008 - 11:51 PM
Scotty
#54
Posted 30 November 2008 - 05:58 AM
For those willing to spend the money, you can find wireless controller receivers for Windows for 20 dollars or less. I can only assume that with the wireless receiver, that Windows connects the controller like it does the wired controller, as a recognizable gamepad for GameMaker's uses. No reason it shouldn't, I believe.
#55
Posted 15 December 2008 - 06:41 PM
see my signiturecool
![]()
How about a wii controller library?
edit.
G I feel stupid,
name=]']]
Edited by Caniac, 15 December 2008 - 06:41 PM.
#56
Posted 29 December 2009 - 08:02 PM
Edited by Amorment, 09 July 2011 - 05:33 PM.
#57
Posted 19 August 2010 - 12:38 PM
#58
Posted 17 September 2010 - 02:59 AM
you should try to make one for the PS3 controller because I only have a PS3 controller no an XBox controller
PS3 controllers aren't USB, and I don't think they have an adapter either.
#59
Posted 17 September 2010 - 04:33 AM
you should try to make one for the PS3 controller because I only have a PS3 controller no an XBox controller
PS3 controllers aren't USB, and I don't think they have an adapter either.
They are USB. The adapter is also known as a bluetooth dongle.
#60
Posted 07 October 2010 - 06:56 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











