Page 3 of 3

Re: Baton - yet another input library

Posted: Tue Feb 14, 2017 5:30 pm
by Tesselode
HattyDamp wrote: Tue Feb 14, 2017 3:37 pm Hi...i am a new user here. I want to know What is the idea behind _getActiveDevice? Is it used to avoid source queries for a device that isn't used?This one can be difficult to fix given the approach taken by the library but the shape of the deadzone should really be a circle, not a "cross".
_getActiveDevice is mainly for cosmetic things: for example, if you're showing on-screen instructions for the controls, you may want to change those instructions based on whether the player is using the joystick or the keyboard.

And circle deadzones is a topic I've thought about, but I haven't been very active in developing my libraries for the past few months. There are some times when you want cross deadzones and some times when you want circle dead zones. I'm considering adding a special kind of object to pair axes together and use a circular deadzone. Does that sound like something you would want?

Re: Baton - yet another input library

Posted: Tue Feb 14, 2017 5:37 pm
by bartbes
HattyDamp wrote: Tue Feb 14, 2017 3:37 pm Hi...i am a new user here. I want to know What is the idea behind _getActiveDevice? Is it used to avoid source queries for a device that isn't used?This one can be difficult to fix given the approach taken by the library but the shape of the deadzone should really be a circle, not a "cross".
As zorg pointed out, it looks like that was a bot. Oops!
pevzi wrote: Sat Oct 15, 2016 9:58 am 1. What is the idea behind _getActiveDevice? Is it used to avoid source queries for a device that isn't used?
2. This one can be difficult to fix given the approach taken by the library but the shape of the deadzone should really be a circle, not a "cross". Tactile suffered from this as well, by the way.

Re: Baton - yet another input library

Posted: Wed Feb 15, 2017 8:25 am
by Tesselode
bartbes wrote: Tue Feb 14, 2017 5:37 pm
HattyDamp wrote: Tue Feb 14, 2017 3:37 pm Hi...i am a new user here. I want to know What is the idea behind _getActiveDevice? Is it used to avoid source queries for a device that isn't used?This one can be difficult to fix given the approach taken by the library but the shape of the deadzone should really be a circle, not a "cross".
As zorg pointed out, it looks like that was a bot. Oops!
pevzi wrote: Sat Oct 15, 2016 9:58 am 1. What is the idea behind _getActiveDevice? Is it used to avoid source queries for a device that isn't used?
2. This one can be difficult to fix given the approach taken by the library but the shape of the deadzone should really be a circle, not a "cross". Tactile suffered from this as well, by the way.
ah geez now i look like a silly

Re: Baton - yet another input library

Posted: Wed Apr 19, 2017 4:17 pm
by lizenas
The documentation for getActiveInputDevice() makes it sound like you can't have more than one input device controlling the game, which would make any kind of co-op game impossible. Is this true or am i misreading it?

Re: Baton - yet another input library

Posted: Wed Apr 19, 2017 9:54 pm
by Tesselode
lizenas wrote: Wed Apr 19, 2017 4:17 pm The documentation for getActiveInputDevice() makes it sound like you can't have more than one input device controlling the game, which would make any kind of co-op game impossible. Is this true or am i misreading it?
Nope! player:getActiveDevice() is per player object, and to have multiple players you would use multiple player objects. So you can definitely make co-op games!

Re: Baton - yet another input library

Posted: Wed Apr 19, 2017 11:15 pm
by lizenas
Oh, gotcha. Thanks!

Re: Baton - yet another input library

Posted: Mon Oct 23, 2017 5:10 am
by Tesselode
I just pushed a pretty major update with support for axis pairs. I've tested it a decent amount, but let me know if you all find any bugs! fingers crossed that there won't be any glaring horrible ones

Re: Baton - yet another input library

Posted: Mon Oct 23, 2017 5:16 am
by lizenas
Looks great! Super excited to use this, it'll simplify a decent chunk of my movement code