realbasic-games
[Top] [All Lists]

Re: How to know if a game device element is a buton or a potenciometer

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: How to know if a game device element is a buton or a potenciometer
From: Craig M. <FishyRB at 98115 dot net>
Date: Thu, 1 Feb 2007 19:33:23 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <45C2693E dot 6040500 at gmail dot com> <F1F88E12-292E-4067-8EF4-C2FD86508E06 at satx dot rr dot com> <00ED1BEE-7039-454F-AB26-14A7322F794F at fireyesoftware dot com>

On Feb 1, 2007, at 5:43 PM, Asher Dunn wrote:


On Feb 1, 2007, at 8:38 PM, William Squires wrote:

If your game elements are instances of separate classes, you could use an "IsA" test.

I think he meant game *input* device, and "if myGameInputElement Isa Potentiometer" sounds like wishful thinking to me ;-)

Asher

If this is the case the "Potentiometer" usually has "axis" in its name. I don't think you can count on it, but its been true for everything I have seen. (A few mice and a joy stick, with a Z-Axis throttle and X and Y axis)

Also, does any one have a good setup for handling input configuration with the game-input classes? (Detecting the range of an axis and letting the user select what does what, and stuff like that) If no one does I can post mine. It mostly works (It can select a configuration and adjust everything, and save it, but there are some bugs), but is very confusing to use, and overly complicated.

Thanks,
Craig

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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


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