Re: [AD] mouse_api branch

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 8/30/06, Peter Wang <tjaden@xxxxxxxxxx> wrote:
On 2006-08-29, Peter Hull <peterhull90@xxxxxxxxxx> wrote:
> On 8/27/06, Peter Wang <tjaden@xxxxxxxxxx> wrote:
> > If you click outside, wouldn't that focus another window?
> Oh, yes I see what you mean now.
>
> In the new API, I don't think there are methods to:
> Determine the number of axes on the mouse
> Get the value on the fourth axis

Add them :-)
Sorry, I actually meant 'set the value on the fourth axis' - I already
added the axis to the mouse event and mouse state structure.

Anyway, I'm wondering whether the number of buttons and axes should be
part of the AL_MOUSE structure. I'm assuming there will be something
analagous in the AL_JOYSTICK structure. Of course, having >1 joystick
is not unusual, whereas >1 mouse would be extremely unusual*, but it
would be nice to have the APIs looking 'aligned'.

Pete

* I don't think it is worth supporting multiple mice, I'm pretty sure
for OSX I'd need to go to the USB HID manager and do my own coordinate
scaling, hit-testing, etc etc.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/