360 Controller with Lion Continued

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes.

Following on from yesterday, I downloaded Borderlands from the Mac App Store along with Half-Life 2 Episode 1, Half-Life 2 Episode 2, Portal and Portal 2 from Steam.

Borderlands worked immediately with the 360 controller.  A good start.

Portal 2 also worked straight away but sadly none of the other Steam games recognised the controller.  I tried the exec 360controller command in the developer console but that didn’t make any difference either.  Having done more reading online it appears that the Mac version of Steam doesn’t support gamepads with the source games.  An article written in May 2010 mentions:

Gamepad support, despite it being listed in the options menus for games, is not something the beta has. I was told by Valve earlier that this support is definitely on their to-do list.

Unfortunately it looks like that may not happen as it has now been a year and a half since the article was written and it’s still missing.  I suppose it comes down to the fact that Half-Life 2 is now over eight years old so it predates the xbox 360, Steam and Lion. I’ll keep my fingers crossed that someone will work their magic and make these things talk to one another but I think the chances are slim.

Image Credit Disney

360 Controller + Mac + Steam != Fun

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes.

I saw a lady on the gadget show playing games on a MacBook Pro with a 360 controller and as I already have two wireless controllers for my 360 I thought it was worth investigating.  A little bit of research online told me that you need a Microsoft dongle to make the wireless controllers work with a computer or I could buy a wired controller for less than the cost of the dongle.

I bought a wired controller this morning and I have spent all afternoon fiddling about but it doesn’t seem to work with Steam.

I installed the driver from here: http://tattiebogle.net/

The preference pane installed perfectly and all the buttons of my controller were recognised including the force feedback rumbles.  This was encouraging.

So I tried GTA Vice City which I had purchased from the Mac App Store.  The camera just span around and around.  I pulled out the controller plugged it in again and it worked briefly before the camera started spiralling again.  I pulled it out and tried again.  This time it worked a little longer but immediately started spinning while I was in a shoot out with the cops.  Not ideal.

Next I tried Half-Life 2 purchased on Steam.  At first the controller did nothing so I triedGamepad Companion which made my character intermittently walk into walls and then refuse to respond anymore.

I looked on Steam’s Support pages and found this article on using and xbox 360 controller with source games.  They mention using the configuration files with Half-Life 2 so I tried that.  Still no joy.

I have now read so many articles and watched about ten videos where teenagers tell me how easy it is to get the 360 controller working on the mac but I still can’t figure it out.  Perhaps it’s the fact that I’m trying it with old games?

I purchased Borderlands from the Mac App Store but I can’t download 9.51Gb on my 0.2Mbps connection so I’ll download it at work in the morning and try again tomorrow night.  Hopefully that will work otherwise the controllers going back and I’m giving up on portable gaming.

jQuery mousemove project.

Note: This post was originally published on iamianwright.com it’s been moved here for archival purposes.

I set myself a little project yesterday to make an image where the head follows the cursor around the screen.  I thought it would be an interesting way to learn jQuery.  I got Shelley to take nine images of me and then I put together a simple test.

The image was set to absolute positioning, 200px from top and 200px from the left.  This allows me to set up a series of if statements that find out if the cursor was in a specific sector.

The example is here: http://clients.imagecircus.com/jquery/

The next step is to make all the measurements relative to the image.  With the current version the image must be absolutely positioned which is limiting.  Ultimately I would like to be able to place the image within a fluid layout and still have the interaction work.

Having done some research online it looks like I need to use minus offsetLeft and minus offsetTop to set the origin to the top left of the image.  I am having some trouble figuring out the code though.  Hopefully one of my developer friends will point me in the right direction.

Other improvements to make are making sure that the sectors overlap as currently there are dead spots between them that show the straight on image and perhaps more importantly preloading all the images.

UPDATE: A photographer friend of mine took some better headshots (seen above) so the example has been updated with those.