+1 > On Apr 10, 2016, at 2:39 AM, stepharo <steph...@free.fr> wrote: > > this is cool > > Stef > > > Le 10/4/16 06:32, Ronie Salgado a écrit : >> Can't SDL2 be used with a joystick? >> >> It can be used. Although, joystick support was not very well integrated into >> OSWindow because joystick events are not being sent into a specific window. >> Now I am doing a cleanup on the joystick support, by sending the event to >> all the windows. I will publish an example soon. >> >> In SDL2 there are also two APIs for joysticks, the Joystick API and the >> GameController API (Joystick + layout mapping). I originally made the >> bindings only for the Joystick API. I just made the bindings for the >> GameController API, which is more useful, since you do not have to worry >> about different joystick layouts. There are also some events for detecting >> when a joystick is connected or disconnected from the machine which I am >> adding. >> >> >> >> 2016-04-09 20:18 GMT-03:00 Stephan Eggermont <step...@stack.nl>: >> On 09-04-16 15:24, Carolina Hernández wrote: >> I couldn't find any direct way to use a joystick in Pharo, if someone knows >> about one, I'd like to integrate it to my code. >> https://github.com/Geal/Squeak-VM/tree/master/platforms/Mac%20OS/plugins/JoystickTabletPlugin >> >> Refers to a joystick plugin for squeak. I don't know if that is in the >> current distribution >> (it doesn't seem to be), so you might ask on the vm-dev list about it. I >> haven't looked >> at it, so it could be for a RS-232 based joystick instead of something more >> useful with >> a modern pc. >> >> Can't SDL2 be used with a joystick? >> >> Stephan >> >> >> >> >> >
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.