SyntaxBomb - Indie Coders

General Category => General Discussion => Topic started by: Steve Elliott on September 17, 2020, 21:17:08

Title: X-Box 360/Game Controller
Post by: Steve Elliott on September 17, 2020, 21:17:08
As a game related site, does everybody have an X-Box 360 Controller or a version of it - or a similar game controller?...Apart from first person shooters and more mouse driven games, you just can't beat the comfortable game controller with multiple buttons.

Xerra produced a game for the last SB Comp that was so much better when used with a comfy game controller.  My game for this competition requires independant movement and shooting, so is far more comfortable when used with a gamepad...Although on a mechanical keyboard it becomes a crazy (and loud) version of 'Typing Of The Dead'!   :))
Title: Re: X-Box 360/Game Controller
Post by: STEVIE G on September 17, 2020, 23:45:03
I have PlayStation pads set up on my PC.  Much prefer them to the bulky xbox ones. Left stick is generally x/y axis for all analog pads but right is always different.
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 17, 2020, 23:54:13
Bulky??  The one I have is tiny and really comfortable...For my game I'm using the D-Pad for direction and 4 buttons for firing.  So it will be interesting to see how that translates to a Playstation controller...ie a bug fix.   ;)
Title: Re: X-Box 360/Game Controller
Post by: STEVIE G on September 18, 2020, 00:22:42
Quote from: Steve Elliott on September 17, 2020, 23:54:13
Bulky??  The one I have is tiny and really comfortable...For my game I'm using the D-Pad for direction and 4 buttons for firing.  So it will be interesting to see how that translates to a Playstation controller...ie a bug fix.   ;)


Show me. Any xbox controller I've ever used is like a half brick. Dpad and buttons will work fine, same as Smash tv on the snes then? I've got some usb snes controllers.  :D
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 18, 2020, 00:31:12
I bought an X-Box 360 controller (lost it) so now I have a cheap-ish knockoff.  Both small.  I don't know about later models, are they larger?  I don't have a Playstation Controller because I don't have a games console at the moment, just computers.

Ah the SNES, one of my fave consoles.  I have a couple of SNES-like controllers for the Raspberry Pi, but use the X-Box Controller clone now instead.
Title: Re: X-Box 360/Game Controller
Post by: Xerra on September 18, 2020, 00:55:14
I think it made all the difference to Validius when I put gamepad code in. I'm actually tempted to update all my old games to do it. That game wasn't really keyboard friendly anyway, I thought. I added gamepad to Boulderdash when I went back to finish that and the new game already has the functions in place.

I use a PS4 controller on my Mac and it works just fine. I've not tried using it for anything other than playing my own games, though. Gamemaker has the ability to read up to something like 16 different connected controllers in your own games, if you needed that much. It definitely works with an Xbox controller as I used one myself before it broke. Pretty sure I used a raspberry Pi NES type controller too, at some point.

As I have a PS4, playing games with a gamepad just feels more natural now. And to think I used to hate using them compared to keyboard/mouse as I was a dead-set PC gamer for a long time. I even bought the official mouse on my original PS1 so I could play worms like I did on my Amiga :)

Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 18, 2020, 01:01:06
Quote
I think it made all the difference to Validius when I put gamepad code in.

Definitely, so I very quickly added gamepad support to my game for this comp straight away.

There is no rivalry on controllers as far as I'm concerned - I just want my game to function correctly on keyboard or gamepad, whichever controller you use.
Title: Re: X-Box 360/Game Controller
Post by: Qube on September 18, 2020, 02:43:51
I have a wired Xbox controller, a PS4 controller, Xbox One controller and a funky dual stick 8-bit-do. Personal favourite is the Xbox controller which sits in my big fat clumsy hands better. 
Title: Re: X-Box 360/Game Controller
Post by: MrmediamanX on September 18, 2020, 07:02:23
dang the only controller I have is built into my GPD.
I really need to invest in another gamepad i'm just to lazy to get one. :D
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 18, 2020, 11:38:48
Quote
I really need to invest in another gamepad i'm just to lazy to get one. :D

Generally though I just use a Logitech F310, which tries to be a compromise between PS4 and Xbox controllers.  So much so, it ends up being neither.  It works, but doesn't feel "right".

Here's the one I bought:

https://www.amazon.co.uk/gp/product/B085XD6R79/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1

As far as the comp game is concerned, it should use the D-Pad and 4 main buttons to fire.  If it doesn't map to those buttons on your gamepad then I'm calling it a bug, so I can fix that in the bug fixing time. :)

I'll need to add some extra buttons too, and haven't decided which button to allocate for placing bombs - probably the right trigger button.
Title: Re: X-Box 360/Game Controller
Post by: iWasAdam on September 18, 2020, 12:18:43
@Steve. Me too  :P
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 18, 2020, 13:10:23
Mapping buttons for your shooter too, or bug fix thing Adam?
Title: Re: X-Box 360/Game Controller
Post by: Pakz on September 18, 2020, 13:36:53
For Minecraft Bedrock you needed a xbox controller as no others will work with it. I first ordered a scandinavian controller and discovered this<<. I am on my second xbox controller now in 3 years. Wireless. It eats batteries like crazy! It is very comfortable and the only thing that is anoying is when the power gets low it just quits out in the middle of the action. When pairing fails it needs new batteries also.

It seems programming for these controllers is not difficult either.
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 18, 2020, 13:48:39
Quote
Wireless. It eats batteries like crazy! It is very comfortable and the only thing that is anoying is when the power gets low it just quits out in the middle of the action. When pairing fails it needs new batteries also.

That's why I prefer a wired controller - plus you don't get any latency with a wired controller.
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 19, 2020, 16:00:48
As they were a few quid off I ordered another one of these yesterday, and it came today.  I have one for the pi 4 and now I can use this as a dedicated PC Game Controller.  A great little controller for the price, very comfy and surprisingly well made:

Link (https://www.amazon.co.uk/gp/product/B085XD6R79/ref=ppx_yo_dt_b_asin_title_o06_s00?ie=UTF8&psc=1)
Title: Re: X-Box 360/Game Controller
Post by: Steve Elliott on September 29, 2020, 14:13:08
I downloaded a driver for XBox Controller Support from Github (to allow it to run on a mac):

Link (https://github.com/360Controller/360Controller/releases)

And used my USB to Thunderbolt 3 Dongle to allow the wired XBox Controller to be plugged-in.

Link (https://www.amazon.co.uk/Adapter-Converting-Thunderbolt-MacBook-Devices/dp/B07CVX3516/ref=sxts_sxwds-bia-wc-p13n2_0?cv_ct_cx=usb+to+usb-c&dchild=1&keywords=usb+to+usb-c&pd_rd_i=B07CVX3516&pd_rd_r=88ce6c98-bf06-4e5e-ac63-b43ad01b0d9e&pd_rd_w=CJAN4&pd_rd_wg=24rwE&pf_rd_p=2dd2e810-929c-4688-a622-8bf5cd31314f&pf_rd_r=6JFKQVTDAZMS8394DFFG&psc=1&qid=1601384930&sr=1-2-ac3a866f-801f-44fe-9e94-bb9a271cf6b8)

So my game now supports keyboard and XBox Controllers (other game controllers should also work) on Windows, MacOS and Linux.