Re: [AD] demo of new joystick API

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


Peter Wang wrote:
Chris wrote:
Now, if we could map axis's to seperate analog buttons, that would be cool. Because them all you have to do is specify different button placements. Much easier than having to worry about stick/button placement and useage.

It sounds a bit... weird.  Care to elaborate?

Like, instead of having one axis that goes from -1 to 1 (or -32768 to 32767), we make two buttons that both go from o to 1 (or 32767). One of the buttons would be "pressed" when the axis is negative, and the other when it's positive. They would not be able to be pressed at the same time (think of mapping a two-axis N64/Gamecube-type joystick into a four-button analog D-Pad).

There's not going to be multiple keyboards, so it was always going to be just "kbd = al_install_keyboard();"

If there's only going to be one keyboard, why not have a global for it, then? Though I don't know why there won't be multiple keyboards.. can't you have more than one with USB keyboards? It would be useful for multiplayer games on the same machine.

'get' is fine. I just wasn't sure about 'unget', although libc has been using it for years so we can probably consider it a word :-)

I would've thought get/release was fine, but if you think unget works better, I guess that's good.

- Kitty Cat




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