key_shifts man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

key_shifts(3)			Allegro manual			 key_shifts(3)

NAME
       key_shifts  -  Bitmask  containing  the current state of modifier keys.
       Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       extern volatile int key_shifts;

DESCRIPTION
       Bitmask containing the current state  of	 shift/ctrl/alt,  the  special
       Windows	keys, and the accent escape characters. Wherever possible this
       value will be  updated  asynchronously,	but  if	 keyboard_needs_poll()
       returns	TRUE, you must manually call poll_keyboard() to update it with
       the current input state. This can contain any of the flags:

	  KB_SHIFT_FLAG
	  KB_CTRL_FLAG
	  KB_ALT_FLAG
	  KB_LWIN_FLAG
	  KB_RWIN_FLAG
	  KB_MENU_FLAG
	  KB_COMMAND_FLAG
	  KB_SCROLOCK_FLAG
	  KB_NUMLOCK_FLAG
	  KB_CAPSLOCK_FLAG
	  KB_INALTSEQ_FLAG
	  KB_ACCENT1_FLAG
	  KB_ACCENT2_FLAG
	  KB_ACCENT3_FLAG
	  KB_ACCENT4_FLAG

       Example:

	  if (key[KEY_W]) {
	     if (key_shifts & KB_SHIFT_FLAG) {
		/* User is pressing shift + W. */
	     } else {
		/* Hmmm... lower case W then. */
	     }
	  }

SEE ALSO
       install_keyboard(3), poll_keyboard(3), key(3), excamera(3), exkeys(3)

Allegro				 version 4.4.2			 key_shifts(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net