realbasic-nug
[Top] [All Lists]

Re: PC Controller

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: PC Controller
From: ER <erockus@gmail.com>
Date: Sun, 31 May 2009 20:16:19 -0500
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; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=SypNpoN32i52/KOMv2jpljXsd2JCDEMHqhkFstPF9Q0=; b=kreOJzBkrpj81NZA18RJtZF8kAssFLwl0quvw/guzyP1R6WlY7Fs8IBmxF5M1zWrFV YdMctDaFV0GJ2ZUFPBTzbFxlofaP0FXOQMxtTlK65yW1GtQPLwEhp0owHxdWlDSopK7E ZjUd2N9EUw9pyHudZdpJxgCQtksUxnu08JHBg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=CkqgWObRySfnUIpHvwuwUNCFv7q5nReoewl0Gvh6bKM9Xo/eRPbngMTTjGyNcwDFdY oR3X5dbT2f+C9hTmGwbtvBiVuMd4zSozb0ONHy6dvCsxMydII+lmH5eGT95l8RoTimp0 B1ziiRXkuQhg3Pxow1mm0qIbzDefHRtW1Chzc=
In-reply-to: <4A23289B.3060001@inspiringapps.com>
References: <74A1C8C2-2476-444C-8D03-DAC385F79C03@gmail.com> <4A23289B.3060001@inspiringapps.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com


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.

That is part of the plan, use GameInputManager to detect when buttons/ analog stick are being used
then translate that to a key press or mouse movement.


I came across  CGEventCreateKeyboardEvent , but I can't get it to work.

This might be a bit to complex for me.

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