realbasic-nug
[Top] [All Lists]

Re: PC Controller

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: PC Controller
From: "Greg O'Lone" <rbnuglist@stretchedout.com>
Date: Sun, 31 May 2009 13:53:53 -0400
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <74A1C8C2-2476-444C-8D03-DAC385F79C03@gmail.com>
References: <74A1C8C2-2476-444C-8D03-DAC385F79C03@gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
On May 31, 2009, at 1:33 pm, ER wrote:

Hi -

I have a controller that " is supported by
native Human Interface Device (HID) support built into your Mac OS " - no device driver.

Which is ok. However I had an idea, but not sure if it will work in Rb.

Can I have Rb check/ be notified when a button('s), control stick, etc.. has been pressed on the controller then have that assigned to a keyboard key and have my app tell the Mac OS or another app that "hey such and such key has been pressed". Incase of the analog sticks perhaps emulate mouse
movements. D-pad could be used for the arrow keys.

One cool thing about the controller is it has rumble feature.. alas
in the controllers doc's its says that feature "isn't supported" on Mac. I would like to figure out away to make that work on my Mac, no biggie if I can't.

Since I have no clue on how to make a device driver, I though I might
be able to rig some to work in Rb.

You should look at the Monkeybread plugins. There are functions for dealing with some HID devices already (we used them to connect to postal scales recently).

Greg

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>