Mouse and Keyboard handling (what does PB use ?)

Linux specific forum
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Mouse and Keyboard handling (what does PB use ?)

Post 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.
"Have you tried turning it off and on again ?"
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

On linux, it now use raw X input, no more SDL (doc is outdated).
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

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

Post by luis »

Nice, thank you.
"Have you tried turning it off and on again ?"
Post Reply