So I needed an event-driven way to handle joystick input, sadly ScreenEvent doesn't offer this. So, I spent a few hours to create my own Extended Event function. It does everything ScreenEvent does (internally it uses ScreenEvent to handle the 'regular' events) but extends some and add joystick support.
http://ecowles.dyndns.org/stuff/ExEvent.rar
Whoops, minor bug causing a constant EVENT_JOY_BUTTON_PRESS event and no EVENT_JOY_BUTTON_RELEASE event. Fixed.
Edit: Fixed typo :\
ExEvent - Extended ScreenEvent
ExEvent - Extended ScreenEvent
Last edited by 1000101 on Jan 12, 2007 12:24, edited 1 time in total.
Re: ExEvent - Extended ScreenEvent
Is a shame a lot of lost code, it would be good to use github or gitlab..too1000101 wrote:So I needed an event-driven way to handle joystick input, sadly ScreenEvent doesn't offer this. So, I spent a few hours to create my own Extended Event function. It does everything ScreenEvent does (internally it uses ScreenEvent to handle the 'regular' events) but extends some and add joystick support.
http://ecowles.dyndns.org/stuff/ExEvent.rar
Whoops, minor bug causing a constant EVENT_JOY_BUTTON_PRESS event and no EVENT_JOY_BUTTON_RELEASE event. Fixed.
Edit: Fixed typo :\