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 capabilities

SYNOPSIS
     captbl, ident
     input_capabilities( vid:fsrv )

DESCRIPTION
     This  function can be used to query the platform (default) or a frameserver
     (providing a valid fsrv  argument) for its current set of	input  capabili-
     ties  in  terms  of devices (both cases) and data types (frameserver 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 accepted devices may be zero, one or  many
     of  the following: "keyboard, "mouse", "game", "touch", "position", "orien-
     tation", "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				   August 2026		   input_capabilities(3)

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

home | help