realbasic-games
[Top] [All Lists]

gameinput, the mouse, and I

To: realbasic-games at lists dot realsoftware dot com
Subject: gameinput, the mouse, and I
From: Fargo Holiday <fargo at rpgportland dot com>
Date: Fri, 28 Apr 2006 09:46:21 -0700
Delivered-to: realbasic-games at lists dot realsoftware dot com
Hi everyone!
I sincerely hope this isn't covered in some FAQ I haven't found, because while I've looked, I haven't found it anywhere.

Basically, haha, I've been playing around with the gameinput stuff, and have run into some odd behavior with the mouse deltas. If I try to get data from myMouse.element(0).value and myMouse.element(1).value in the same area, I never get anything from element(1). For instance, if I try to get both values in the MouseMove event of an RB3dSpace. If, however, I have one there and another in the MouseMove event of the main window, I can get the values just fine, or, as I have it at the moment, if I read them from separate threads, which are triggered in the RB3DSpace MouseMove, they get the values fine. In any case, if someone could explain to me why that happens I'd appreciate it. I'm working under Windows, fyi. Also, if anyone can point me towards some good examples of using mouse input with the gameinput objects, that'd be great too.

Thanks,
Fargo
_______________________________________________
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>


From  Fri 28 Apr 2006 11:20:41 -0600
Return-Path: <realbasic-games-bounces at lists dot realsoftware dot com>
Received: from lists.realsoftware.com (209.198.132.125) by realsoftware.com
with ESMTP (Eudora Internet Mail Server 3.1.3);
Fri, 28 Apr 2006 12:20:52 -0500
Received: from lists.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP
        id 01E501229895; Fri, 28 Apr 2006 12:20:48 -0500 (CDT)
X-Original-To: realbasic-games at lists dot realsoftware dot com
Delivered-To: realbasic-games at lists dot realsoftware dot com
Received: from jareth.dreamhost.com (jareth.dreamhost.com [66.33.198.201])
        by lists.realsoftware.com (Postfix) with ESMTP id 051CF122987E
        for <realbasic-games at lists dot realsoftware dot com>;
        Fri, 28 Apr 2006 12:20:43 -0500 (CDT)
Received: from [10.0.1.2] (c-67-174-105-26.hsd1.co.comcast.net [67.174.105.26])
        by jareth.dreamhost.com (Postfix) with ESMTP id D8380191657
        for <realbasic-games at lists dot realsoftware dot com>;
        Fri, 28 Apr 2006 10:20:40 -0700 (PDT)
Date: Fri, 28 Apr 2006 11:20:41 -0600
From: joe at strout dot net
To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
In-Reply-To: <445246DD dot 1010108 at rpgportland dot com>
X-Mailer: VerEx Email Gateway
Content-type: text/plain;
Content-transfer-encoding: 7bit
Message-Id: <20060428172040 dot D8380191657 at jareth dot dreamhost dot com>
Subject: Re: gameinput, the mouse, and I
X-BeenThere: realbasic-games at lists dot realsoftware dot com
X-Mailman-Version: 2.1.2
Precedence: list
Reply-To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Sender: realbasic-games-bounces at lists dot realsoftware dot com
Errors-To: realbasic-games-bounces at lists dot realsoftware dot com

Fargo wrote:
Basically, haha, I've been playing around with the gameinput stuff, and have run into some odd behavior with the mouse deltas. If I try to get data from myMouse.element(0).value and myMouse.element(1).value in the same area, I never get anything from element(1). For instance, if I try to get both values in the MouseMove event of an RB3dSpace.

It could be that MouseMove is fired whenever either axis of the mouse moves.  I 
wouldn't recommend using MouseMove with the GameInput classes; they're doing 
different things but reading the same device.  More typical would be to use 
GameInput with something like a timer, or a loop in a thread -- whatever is 
driving your animation loop.  Or, if you want to use MouseMove, then you don't 
need GameInput; just use the X and Y parameters to that event.

HTH,
- Joe

--
Joe Strout -- joe at strout dot net
Available for custom REALbasic programming or instruction.

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