*** Flash <Flash!~flash@2601:280:c200:4e39:9966:5f53:2349:16ba> has quit IRC (Ping timeout: 260 seconds) | 00:12 | |
macsforme | so it looks like with DXJoystick on Windows, and using an Xbox One controller, for the two triggers there is just the 'Z' axis for both triggers | 01:58 |
---|---|---|
macsforme | the left trigger moves it from 0 to -1, the right trigger moves it from 0 to 1, and the two triggers offset each other so if both are pressed, the Z axis reads 0 | 01:59 |
macsforme | on macOS (using the SDL 2 joystick code), aside from axes 0-3 for the two thumb sticks, there is 4 for the left trigger and 5 for the right trigger, and each axis appears to go from -1 to +1 (I think) as each trigger is pressed | 02:01 |
macsforme | the SDL 2 code seems like the more desirable of the two, so you can at least use each trigger value independently | 02:02 |
macsforme | in either case, no button events are generated with either trigger press... this is also true when using SDL 2's game controller test program (for the alternative API), which reports the axes only | 02:03 |
macsforme | my thought is to emulate a joystick button event for when each axis goes from negative to positive, to allow actions to be bound to the triggers... this would incidentally also allow us to bind actions to the two main thumb sticks (e.g., menu navigation up + down / left + right, as in other games) | 02:08 |
macsforme | an advantage of switching to SDL's game controller API (down the road) would be that every button appears to be referenced by name (e.g., X, Y, A, B, leftshoulder, rightshoulder, etc.), so you're not guessing at the layout as far as which button is which | 02:18 |
blast007 | I was almost thinking that with the Game Controller API that the analog triggers acted as both an axis and digital buttons, but it has been several months since I messed with SDL2 and GLFW | 02:33 |
macsforme | could be on Windows... I'm not getting a button event for Xbox One controller triggers on macOS with SDL's testgamecontroller | 02:36 |
macsforme | interesting comparison between my two controllers: https://pastebin.com/jg5z5es1 | 02:46 |
blast007 | that's with the Game Controller API? | 02:49 |
blast007 | or maybe not, cuz it's using numeric IDs for buttons | 02:50 |
blast007 | did the mapping of the buttons on the nimbus end up matching the physical layout of the xbox one controller? | 02:53 |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 02:56 | |
blast007 | https://github.com/gabomdq/SDL_GameControllerDB | 02:56 |
macsforme | yeah, when I used SDL's testgamecontroller, the named buttons matched perfectly between them | 03:09 |
blast007 | cool | 03:10 |
macsforme | theoretically, if we can assume that any joystick button 0 is typically used to accept an action, and button 1 is typically used to cancel/regress, we could probably support joystick menu navigation even now... we could just use whatever joystick axes are bound for movement in the Input menu, but use them for navigation | 03:12 |
macsforme | to take it a step further... I implemented an on-screen keyboard for the GCW Zero... we could have full support for messaging and everything ;-) | 03:13 |
macsforme | https://imgur.com/a/RNHWoqN | 03:16 |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has quit IRC (Ping timeout: 244 seconds) | 05:33 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net> has quit IRC (Read error: Connection reset by peer) | 07:34 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 12:14 | |
*** Sgeo <Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net> has joined #bzflag | 14:33 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has quit IRC (Ping timeout: 260 seconds) | 15:36 | |
*** joevano <joevano!~joevano@bzflag/developer/JoeVano> has quit IRC (Ping timeout: 260 seconds) | 18:25 | |
*** joevano <joevano!~joevano@bzflag/developer/JoeVano> has joined #bzflag | 18:42 | |
*** ChanServ sets mode: +v joevano | 18:42 | |
*** Zehra <Zehra!~Keiki_Han@unaffiliated/zehra> has joined #bzflag | 19:37 | |
*** rob1n <rob1n!~rob1n@c-24-16-204-21.hsd1.wa.comcast.net> has joined #bzflag | 19:57 | |
*** rob1n <rob1n!~rob1n@c-24-16-204-21.hsd1.wa.comcast.net> has quit IRC (Client Quit) | 19:59 | |
*** I_Died_Once <I_Died_Once!~I_Died_On@unaffiliated/idiedonce/x-1828535> has joined #bzflag | 20:15 |
Generated by irclog2html.py 2.17.3.dev0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!