WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Analog joystick on Mac OS X?

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiLi General Discussion
View previous topic :: View next topic  
Author Message
quto



Joined: 24 Jul 2007
Posts: 4

Digg It
PostPosted: Tue Jul 24, 2007 3:20 am    Post subject: Analog joystick on Mac OS X?

DarwiinRemote has many features, and it's already very close to a perfect solution for me, but it lacks one vital feature that would meet my needs. This feature is, obviously, Control Stick support. WiiRemote.framework already has support for stick input, and it's been implemented in WiiToMidi.

I investigated the source myself to see what progress had been made. Now, I'm not much of a C programmer and even less of an Obj. C programmer, but there was already an event set up to deal with joystick input, joyStickChanged.

Jasenj1 had introduced some support for a joystick position viewer in his branch of DarwiinRemote, so I copy-pasted some of the code he put in that method. I considered using his version as a base, but it lacked Classic Controller suppot. Basically, the code brought over does some conversions and ends up with two floats, scaledX and scaledY.

These are the values (rounded, of course) that scaledX and scaledY had in certain positions:

Joystick Pos
Center
X = 0.1
Y = 0
Full Up
X = 0.1
Y = 1
Full Down
X = 0.1
Y = -1
Full Left
X = -1
Y = 0
Full Right
X = 1.1
Y = 0

As you can see, scaledX probably needs to be normalized a bit more, but that's not too much of a problem. Anyway, I don't know where to go from here. If there is anyone willing to pick this up based on the info provided or offer a way to get analog control, I'm open for suggestions.

As far as I'm aware, ControllerMate, a paid piece of Mac software, can create virtual gamepads, but that's all that I know of. I considered changing the keypress frequency based on distance from center, but I'm unable to get it set up correctly.

WiiRemoteJ and Remote Buddy are also not options because:
- Remote Buddy is limited and more application-focused instead of keymap-based. It has no Nunchuk or Classic C support whatsoever.
- Avetana is $50 or so, I believe, and that's outside my price range for this little project.

I attempted to run GlovePIE in wine-mac, but the built-in Bluetooth stack doesn't seem to be able to connect to the Wiimote. I may investigate that further and try to use it with DarwiinRemote. Other options such as WINE with other Windows drivers and Linux ports are on the table as well.

Again, I know very little about C, and driver development is likely not an option at the moment. I've downloaded some open-source gamepad drivers anyway, and I'll look at them later.[/i]

Below is a link to a screenshot of the jasenj1 DarwiinRemote. Change the first "p" to a "t" to make it usable.
htpp://xs317.xs.to/xs317/07302/pic3.png
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> WiiLi General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group