Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
AG_KEYMOD(3)	       FreeBSD Library Functions Manual		  AG_KEYMOD(3)

NAME
     AG_KeyMod -- agar key modifier definitions

SYNOPSIS
     #include <agar/core.h>
     #include <agar/gui.h>

DESCRIPTION
     The AG_KeyMod type	describes a modifier key (or the state of all modifier
     keys); it is defined as:

     typedef unsigned int AG_KeyMod;

     #define AG_KEYMOD_NONE	     0x0000
     #define AG_KEYMOD_LSHIFT	     0x0001
     #define AG_KEYMOD_RSHIFT	     0x0002
     #define AG_KEYMOD_LCTRL	     0x0040
     #define AG_KEYMOD_RCTRL	     0x0080
     #define AG_KEYMOD_LALT	     0x0100
     #define AG_KEYMOD_RALT	     0x0200
     #define AG_KEYMOD_LMETA	     0x0400
     #define AG_KEYMOD_RMETA	     0x0800
     #define AG_KEYMOD_NUMLOCK	     0x1000
     #define AG_KEYMOD_CAPSLOCK	     0x2000
     #define AG_KEYMOD_MODE	     0x4000
     #define AG_KEYMOD_ANY	     0xffff
     #define AG_KEYMOD_CTRL	     (AG_KEYMOD_LCTRL|AG_KEYMOD_RCTRL)
     #define AG_KEYMOD_SHIFT	     (AG_KEYMOD_LSHIFT|AG_KEYMOD_RSHIFT)
     #define AG_KEYMOD_ALT	     (AG_KEYMOD_LALT|AG_KEYMOD_RALT)
     #define AG_KEYMOD_META	     (AG_KEYMOD_LMETA|AG_KEYMOD_RMETA)

     The method	of accessing key modifier states (and the related translation
     from native scancodes to AG_KeyMod) is driver-specific.

SEE ALSO
     AG_Intro(3), AG_Keyboard(3), AG_KeySym(3),	AG_Widget(3), AG_Window(3)

HISTORY
     The AG_KeyMod type	first appeared in Agar 1.4.  The bitmasks match	those
     of	SDL-1.2	(https://libsdl.org/).

FreeBSD	13.0			October	2, 2009			  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=AG_KeyMod&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help