GLFW for Mac OS X now has Joystick Support

Monkey Targets Forums/Desktop/GLFW for Mac OS X now has Joystick Support

Marky Potatoes(Posted 2012) [#1]
Hey Monkey People,

Is there any way that the next Monkey release can support the new release of GLFW, which now includes Joystick support for the Mac? This would be essential to me releasing an arcade game for Mac in addition to Windows and iOS.


AdamRedwoods(Posted 2012) [#2]
It's looking that way. I threw it in with a quick mod and it worked fine.


Marky Potatoes(Posted 2012) [#3]
How were you able to mod it? I tried throwing in the include and lib in the glfw target folders to replace the files there, but my build didn't work. Is there anything else you need to do?


AdamRedwoods(Posted 2012) [#4]
http://www.monkeycoder.co.nz/Community/posts.php?topic=3582

I commented out that line, since my Mac mini can't run OpenGL 3 anyways.


Marky Potatoes(Posted 2012) [#5]
Ok, so I have done some tinkering of my own, and I uploaded some stuff that will be helpful to those wanting to use a Joystick for the GLFW Mac target.

Before you start, make sure this is in your Monkey folder.

-------

1st download - the Monkey GLFW library, specialized for Mac to work with Joysticks:
http://www.brooklyncodebits.com/programmingTools/GLFWMacJoystickForMonkey.zip

Take the contents and within your Monkey folder, go to targets -> glfw -> glfw. Replace the contents of the lib folder with the contents of that zip's lib folder.

2nd download - the new Monkey GLFW Xcode project:
http://www.brooklyncodebits.com/programmingTools/XcodeMonkeyProjectIOKit.zip

Replace the xcode project in targets -> glfw -> xcode with the file in that zip.

--------

Rebuild your mac GLFW projects, and it should work (it does for me!)


Gl¡tch(Posted 2013) [#6]
I getting noting from my PS3 controller by using this technique. Anyone got any other suggestions?