logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sensor - describe input interest

Description

       A sensor specifies a set of input events to catch.

Name

       Sensor - describe input interest

Public Operations

Sensor()
              Create a new sensor that initially will not catch any events.

       virtualvoidmotion(boolean)
              Specify  the  sensor  should  (parameter is true) or should not (parameter is false) catch pointer
              motion events.

       virtualbooleanmotion()
              Return whether the sensor is catching pointer motion events.

       virtualvoidkey(boolean)
              Specify the sensor should (parameter is true) or should not (parameter is  false)  catch  keyboard
              events.

       virtualbooleankey()
              Return whether the sensor is catching keyboard events.

       virtualvoidbutton(boolean,PointerButton=Event::any)
              Specify  the  sensor  should  (parameter  is true) or should not (parameter is false) catch button
              events.  The pointer button may specify a particular button  or  Event::any  (meaning  all  button
              events).

       virtualbooleanbutton(PointerButton=Event::any)
              Return  whether the sensor is catching button events.  The pointer button may specify a particular
              button or Event::any (meaning any of the buttons).

       virtualbooleancaught(Event&)
              Return whether the sensor is catching the given event.

       voidCatch(EventType)
              Express interest in a particular type of event.  This function is  provided  solely  for  backward
              compatibility and will be removed in a future version.

       voidCatchButton(EventType,int)
              Express  interest  in  a  particular type of button event for a specific button.  This function is
              provided solely for backward compatibility and will be removed in a future version.

       voidIgnore(EventType)
              Remove interest in a particular type of event.  This function  is  provided  solely  for  backward
              compatibility and will be removed in a future version.

       voidIgnoreButton(EventType,int)
              Remove  interest  in  a  particular  type of button event for a specific button.  This function is
              provided solely for backward compatibility and will be removed in a future version.

See Also

Event(3I)

InterViews Reference Manual                                                                           Sensor(3I)

Synopsis

#include<InterViews/sensor.h>

See Also