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

FreeBSD Manual Pages

  
 
  

home | help
input_capabilities(3)		 Arcan Lua API		 input_capabilities(3)

NAME
       input_capabilities - query platform layer or target for input capabili-
       ties

SYNOPSIS
       captbl, ident
       input_capabilities( vid:fsrv )

DESCRIPTION
       This function can be used to query the platform (default) or  a	frame-
       server  (providing a valid fsrv	argument) for its current set of input
       capabilities in terms of	devices	(both cases) and  data	types  (frame-
       server  only). The returned table is key	indexed	of booleans indicating
       whether the type	is supported or	not. A	frameserver  may  update  this
       mask  for  a segment at will. When the mask is changed, an "input_mask"
       event will be sent to the frameservers  assigned	 event	handler.  This
       mask will be applied to samples provided	through	target_input . For the
       platform, the set may also change when devices are added	and removed in
       response	to a device appearing and removing. The	set of provided	or ac-
       cepted devices may be zero, one or many of  the	following:  "keyboard,
       "mouse",	 "game", "touch", "position", "orientation", "eyetracker". The
       set of accepted datatypes may be	zero, one or many  of  the  following:
       "analog", "digital", "translated", "touch", "eyes".

EXAMPLE
       function	input_capabilities0()
	     for k,v in	pairs(input_capabilities()) do
		   print(k, v);
	     end
       end

SEE ALSO:
iodev				 December 2021		 input_capabilities(3)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | SEE ALSO:

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

home | help