GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
al_clear_keyboard_state(3) al_clear_keyboard_state(3)

al_clear_keyboard_state - Allegro 5 API


#include <allegro5/allegro.h>
void al_clear_keyboard_state(ALLEGRO_DISPLAY *display)

    

Clear the state of the keyboard, emitting ALLEGRO_EVENT_KEY_UP(3) for each currently pressed key. The given display is regarded as the one which had the keyboard focus when the event occurred. In case display is NULL no event is emitted. For most keyboard drivers Allegro maintains its own state of the keyboard, which might get out of sync with the real one. This function is intended to remedy such situation by resetting Allegro’s keyboard state to a known default (no key pressed). This is particularly useful in response to ALLEGRO_EVENT_DISPLAY_SWITCH_OUT(3) events.

al_get_keyboard_state(3), ALLEGRO_KEYBOARD_STATE(3)

5.2.3

[Unstable API]: This is a new feature and the exact semantics are still being decided upon.

Allegro reference manual

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.