realbasic-nug
[Top] [All Lists]

Re: PC Controller

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: PC Controller
From: Joe Strout <joe@inspiringapps.com>
Date: Sun, 31 May 2009 19:02:19 -0600
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>
Organization: Inspiring Applications, Inc.
References: <74A1C8C2-2476-444C-8D03-DAC385F79C03@gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
ER wrote:

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.

OK, let's break this into two parts.

1. Detecting keyboard presses, joystick positions, etc. In RB, you do this using the GameInputManager. That's what it's for; it's really easy to use and works well.

2. Fooling the OS into thinking these are keystrokes or mouse movements, even in other apps. That's going to be much harder. Haven't a clue how you would tackle that.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com


_______________________________________________
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>