I’ve begun to add joystick support for my game. Step 1 is moving around. It’s a top-down thing, so one joystick will move the player in any direction (they simply turn to face the direction they’d like to walk).
The problem is that the joystick is very sensitive – that is, bringing it down about 33% of the way = 100% in unity. I’m computing the angle that the stick is being held at, and it’s always in increments of 45 degrees, which seems odd, since it should be able to be any amount from 0-360, right?
I’m hoping I just bought myself a cheap controller from Amazon, considering the lack of logo, but maybe those of you with more experience in games (I’ve never played XBox of PS), can fill me in: Should I be expecting more degrees than 0, 45, 90 etc?
Right now the player only walks in those directions, which isn’t exactly fun. Also sometimes pressing “up” the player goes “down”…although that could be a code issue.
Yeah, that’s the controller. Check that there isn’t an “arcade” or “digital” button on it, though, as some controllers have those and they turn the output weird.
I think some people here are saying Xbox and meaning Xbox 360 and others are seeing people say Xbox and thinking they mean the original Xbox. The original Xbox used USB for it’s controllers but had a custom connector just like Woodlauncher said. Wired Xbox 360 pads have a plain USB connector, just like everyone else said. You can also get a proprietary wireless dongle for using wireless Xbox 360 controllers on the PC, which has the benefit of being able to sync multiple controllers to it at once for playing local multiplayer games.
Wow, then why the bloody hell are there Xbox 360 controllers specifically for Windows? It it just the extra driver CD that’s the difference? If so, WTF.
Huh. Guy at Target said his little brother uses a 3rd party XBox controller on his computer just fine. I also found a site that has mac drivers (I’m on a mac).
However, I decided to go with a 3rd party PS3 controller since it was half the price. Just plugged it into the laptop and it started vibrating and wouldn’t stop, so I suppose it’s time to go back and see about the $30 XBox controller, and if that doesn’t work, go for the $60 official controllers I suppose.
There’s Windows “versions” because earlier versions of windows (e.g. XP) don’t come with the driver so they released an SKU of the controller which comes with the drivers for those less computer literate gamers who don’t know to grab a driver from their website. Windows 8 (maybe 7 as well?) comes with the gamepad driver as standard, but previous versions didn’t. There is no hardware difference between the two SKU’s, they’re exactly the same and, from my experience, there’s no difference in price either. As Fishman said, it’s also marketing, so the less savvy games realise it can work with Windows rather than assuming it only works with the 360. Nothing outrageous about it.
ALRIGHT! The WIRED controller works, after installing the driver I found online. The wireless one, although it has USB, only charges via the cord so requires another device to work. So I returned that and got the regular wired one at a different store (the first store didn’t have it). Works great, and the issue w/ the rotations doesn’t happen at all. Wonderful!