ExEvent - Extended ScreenEvent

Post your FreeBASIC source, examples, tips and tricks here. Please don’t post code without including an explanation.
Post Reply
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

ExEvent - Extended ScreenEvent

Post by 1000101 »

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 :\
Last edited by 1000101 on Jan 12, 2007 12:24, edited 1 time in total.
relsoft
Posts: 1767
Joined: May 27, 2005 10:34
Location: Philippines
Contact:

Post by relsoft »

Coolness!!!
jmgbsas
Posts: 35
Joined: Dec 26, 2020 16:03

Re: ExEvent - Extended ScreenEvent

Post by jmgbsas »

1000101 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 :\
Is a shame a lot of lost code, it would be good to use github or gitlab..too
Post Reply