- How To Make Bindings For Xbox 360 Controller For Mac Same As Unity Version
- How To Make Bindings For Xbox 360 Controller For Mac Same As Unity Commands
Either buy a “Microsoft XBox 360 wireless controller for Windows” bundle (app. $40) or, in case you have XBox 360 controllers laying around, just get the “Xbox 360 Wireless Gaming Receiver for Windows” (app. In this article I intend to play games under Steam on a Mac, on MacOS X Yosemite , by using this controller. The Xbox Wireless Adaptor is a small device that can help your Xbox controller connect to a PC. Jeremy Dreyfuss, Justin Gmoser/Business Insider The Xbox Wireless Adaptor hooks into your PC’s USB.
- The image shows you exactly what the key bindings for the Xbox One controller are. These do not vary if you use the Controller with your PC. You can customise the key bindings in the options menu. Simply navigate to Options Controls from the main menu of the game.
- Create a SerializedObject for the object being bound. Bind this object to the UIElements Control or one of its parents. Binding with C#. The following code snippet shows how to create a binding with C# code. To use this snippet, save this example as a C# file in an editor folder, in your project. Name the C# file SimpleBindingExample.cs.
- We've prepared some examples to make it clear. Remap Xbox controller while you play first-person shooters and action-RPGs. These two types of games have a lot in common while you remap the controller. Sticks will work well as WASD and camera movements. Xbox controller face buttons (XYAB) can serve as menu, character profile, and other managing.
Whether you’re trying to no-scope that enemy on COD or score a last-minute slam-dunk on NBA, the touchpad just doesn’t do it.
So, we thought we’d share the best tips on how to connect an Xbox 360 controller to your Mac, to make them tense gaming moments a little easier.
Before you do: Clean up your Mac
BUT, before we get into all the juicy techy stuff, let’s remind you of how beneficial cleaning up your Mac can be.
Before installing any new hardware, it’s important to have an un-cluttered file space so the new software can run efficiently, and you can keep an eye on what’s where.
With CleanMyMac X, it’s easy. It’s one-click cleaning approach and powerful scanning means you can swiftly dispose of useless documents and apps which may be slowing your Mac down.
So, to get optimal controller connectivity, you should download CleanMyMac and tidy up your digital space – prior to any installations. Now, onto how to use an Xbox 360 controller on a Mac.
How to use the Xbox 360 controller on Mac
Not many of us know it, but there could be a handy use for all those old Xbox 360 or Xbox One controllers lying around. But, before you get set up, you need to have the correct hardware installed on your Mac to enable connectivity.
Here’s how.
First of all, you will need either a wired or wireless Xbox controller. Both work fine, but for all those passionate gamers with a tendency to erupt, a wireless device would be best to save any damages to wires (or opponents). These wireless receivers can be bought for around $20 on Amazon, and can handle up to 4 Xbox 360 controllers.
Free Drivers
Obviously, Macs don’t have an in-built driver for Xbox controllers as Apple are in no way affiliated with Microsoft. Similarly, Microsoft doesn’t supply drivers for Mac users for their hardware, which leaves us wanting users having to find our own way.
So back in 2006, it was music to gamer’s ears to hear that Tattie Bogle had developed their own driver free of charge to users across the gaming globe. However, this driver hasn’t been updated since 2012, and is therefore sticky when it comes to compatibility with MacOS X.
For a more streamlined approach to this conundrum, download GitHub’s free driver – it’s maintained and updated frequently and is free to all Mac users.
1. Install the driver
After opening the GitHub link, double click on the DMG file visible under ‘Assets’. This will start the installing process, where you will have to follow the appropriate instructions.
Remember though, as with any new program installation, it will reboot your Mac, so don’t panic. After the restart, you should be able to find ‘Xbox 360 Controllers’ in the system preferences.
2. Connect the Xbox 360 Controller to your Mac
Now you’ve installed the driver, the next step is to connect the controller, which is simple and only needs to be done once.
How To Make Bindings For Xbox 360 Controller For Mac Same As Unity Version
Firstly, you need to plug the USB receiver into a free USB port on your Mac. Once plugged in, the USB receiver’s light should start blinking
Press the big Xbox logo button on the controller so it lights up green
Press the button on the USB receiver
Press the connect button on the controller, which can be found at the top - in-between the left and right toggles
The top left quarter of the circle around the Xbox button should now light up, indicating you are the first controller connected
Now the controller and Mac are linked - so in the future if you want to connect again, all you need do is press the big Xbox logo button to get going. Told you it was simple!
3. Test the Controller
As with all things techy, there’s always loopholes. So, it’s important to test the connections to ensure the controller works before we embark upon a mobile-gaming-gallivant.
Go to ‘System Preferences’, ‘Xbox 360 Controllers’ and you’ll see a screen like below.
This is a control pad, which indicates whether all the buttons on the controller are working properly. That’s about all you can do on this, as well as shutting the controller down by clicking ‘power off’.
4. Configuring for multiple games on your Mac
We all have different tastes in games - some of us like sports and some of us like military, there’s no right or wrong (asides from Half-Life, that’s just awesome and it’s not up for debate).
With these different games come different control configurations, which can get tedious when you only have one type of controller.
For full flexibility of use, there are many tools and apps available which allow you to play any game with any Mac compatible joystick or controller – even the ones that are not compatible with joysticks.
5. Use Joystick Mapper
Out of the many apps to choose from, Joystick Mapper is our pick. And at only $4.99 from the App Store, it’s real value for money – especially when considering the amount of effort it takes to develop such a complex tool.
Here’s how it works –
Once you download the Joystick Mapper app, you need to create a pre-set for your game preferences. To do this, open the app and click ‘Add new pre-set’.
How To Make Bindings For Xbox 360 Controller For Mac Same As Unity Commands
Enter a name for future reference such as ‘My Game’, and for each joystick, click ‘Add a new joystick’.
Now that you’ve identified the joystick, you need to ‘bind’ joystick inputs to keyboard or mouse movements - which is easier than it sounds.
Click on ‘Add new bind’, and then ‘Scan’, and press the button of your game controller that you’d like to use. Next select a mouse or keyboard action, and that will ‘bind’ the chosen inputs.
Simply repeat this process until you’ve bound all the buttons you’d like to use.
If by chance you’re using a controller other than an Xbox 360 or Xbox One, you can replicate these actions and apply them to different controllers. To do this, simply click the ‘Clone’ icon in the top right corner. To put the pre-set into action, set a checkmark before the preferred pre-set/profile you’ve created for the game you’re about to play. Now, you’re good to go!
BUT – don’t close the Joystick Mapper app before starting the game, it needs to keep running to work. Simply select ‘cmd + H’ to hide the window.
Declutter your Mac to make more room for games
Remember, all of these processes won’t work as effectively if you have a messy Mac.
On average, there is a whopping 62GB of junk found on Macs, with jam-packed caches and folders full of useless documents cluttering the hard drive.
This considerably slows down the performance of your Mac, preventing quick and easy installations, and can even hinder the controller connectivity.
CleanMyMac X is an app dedicated to cleaning your Mac head-to-toe. It scans everything on the computer - even old folders that have been evading your wrath for years - identifying what needs to be removed.
The Mac is inspected rigorously, and with its smart one-click clean-up, CleanMyMac sweeps away the unwanted rubbish to organize folders and speed up performance.
Furthermore, CleanMyMac X is free to download. So, what are you waiting for? Download it for free here.
These might also interest you:
C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D).
What is XInput?
XInput is a DirectX API to manage the controllers connected to a PC (the same API is also used on Xbox 360). It allows an Xbox 360 controller to be used on a Windows PC.
What is XInput.NET?
XInput.NET is a .NET library which wraps the functions of XInput. It is different from what you can find inside SlimDX for example because it is designed to be pure CIL. That means you can use it in Unity3D Free (as well as Pro of course). The API was designed to be very similar (if not identical) to the GamePad class from XNA.
Ready to go !
Pre-built binaries are available in the Binaries folder above :
- XInputDotNetPure.dll, .NET assembly containing the GamePad class
- You need to add a reference to this one in your C# project for example
- XInputInterface.dll, utility DLL which makes the calls to XInput
- You have to copy this one next to your .exe
Examples
Some examples are available in this repository :
- Binaries/XInputDemo.exe, small console application for the most simple use of the API
- Tip : use the triggers to test the vibration
- XInputUnity, Unity 4 project rotating a cube with the pad, awesome stuff I swear
- Tip : same tip !
Using with Unity
You can open the XInputUnity from Unity3D to see how it’s setup. The main step is to put XInputDotNetPure.dll inside a Assets/Plugins folder (you can create it if missing).
When make a build in Unity, the XInputInterface.dll file won’t be properly copied to the build folder, so you have to copy it yourself in the same folder as the executable of your project.
Notes
- Under Windows XP, you’ll need special drivers for your Xbox 360 Controller. You can find them at this address : XBox 360 Controller for Windows Software
- You’ll need the latest DirectX SDK to compile it, the binaries were built with the June 2010 version.