[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Re: Pointer module
I was thinking more of something like just giving each "pointer"
device a cursor of it's own, because then I can tell them apart in the
program. This would come in handy in apps or programs that accept
multiple local users and requires them to use a pointer device. I'd
post mouse events directly if I could assign "mouse id" to each one.
I'll consider also adding a mouse emulation (rather than the generic
"pointer") mode anyways.
Thanks, =)
-Thiago
Though I could also make some mouse emulation mode for the joystick.
On Wed, Jan 14, 2009 at 12:51 AM, René Dudfield <renesd@xxxxxxxxx> wrote:
> hey,
>
> I'm sure that's a really good idea for some apps.
>
> Would definitely be cool to have the joystick generate mouse events :)
>
> Note, that often code for joystick can be very different for mice.
> They're just quite different. However, definitely for some things a
> mouse emulation mode would be cool.
>
> cu,
>
>
>
>
> On Wed, Jan 14, 2009 at 6:48 AM, Thiago Chaves <shundread@xxxxxxxxx> wrote:
>> Just wondering, with all the feedback on font size on the other
>> thread. Is there anyone else on the list who would agree that there's
>> some benefit in having a simple way to implement pointing through
>> joysticks in a way that's easily interchangeable with the mouse or is
>> the idea really that pointless?
>>
>> -Thiago
>>
>> On Sun, Jan 11, 2009 at 10:53 PM, Thiago Chaves <shundread@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> I decided to improve the UI on my recent project and decided to allow
>>> users to use joysticks as pointing devices too. To do that I defined a
>>> class that encapsulates both mouse and joystick and gives them an
>>> interface (slightly) similar to the mouse module. I figure the pointer
>>> classes could still be improved, but I decided to release one early
>>> version of it along with an example to get some early feedback on the
>>> idea.
>>>
>>> There's really no advantage on using this over mouse module if you're
>>> using only mouse. It'd make sense in situations where you got both
>>> joysticks and mouse as pointing devices. (local multiplayer
>>> point-and-click games, anyone?)
>>>
>>> There's an example, which just uses the mouse and as many joysticks as
>>> you have as pointing devices. Notice the joystick devices start
>>> pointing at (0, 0)
>>>
>>> Could anyone give this a try and give me some feedback? What is good?
>>> What is bad? What is missing? What is unnecessary?
>>>
>>> Thanks,
>>>
>>> -Thiago
>>>
>>
>