Page 1 of 1

Mouse and Keyboard handling (what does PB use ?)

Posted: Thu Dec 26, 2013 11:45 pm
by luis
The manual says this about the keyboard library:
PureBasic provides fast and easy access to the keyboard. This capability should only be used in applications where raw and extremely fast access is required, such as in games for instance. It use the SDL library.
and this about the mouse library
PureBasic provides a full access to mouses plugged into the computer. It supports standard mouses with up to 3 buttons. This library is optimized and uses very low level functions especially for games.
No mention of SDL here. What does it use for this ? SDL nevertheless, another third party lib, or it's coded directly by you (Fred/Freak) using g_signal_connect() or something else ?

BTW: I think it's a very good idea to mention on what a PB library is based on, like you did for the keyboard lib both on Win (DirectX [DirectInput ?]) and Linux (SDL), it's very important (at least for me) to know the code I'm using on what it's dependent.

If anyone else know for sure... input (!) is welcome.

Thanks.

Re: Mouse and Keyboard handling (what does PB use ?)

Posted: Fri Dec 27, 2013 12:17 pm
by Fred
On linux, it now use raw X input, no more SDL (doc is outdated).

Re: Mouse and Keyboard handling (what does PB use ?)

Posted: Fri Dec 27, 2013 12:54 pm
by luis
Nice, thank you.