#include <InputEvent.hpp>

Public Member Functions

 InputEvent (Instance *inst)
 
 ~InputEvent ()
 
Instanceinstance () const
 
void status (iv::TableDebugView *view)
 

Public Attributes

ClientMarker cm
 
PrivValAttr< bool > attr_eventEnabled
 
PrivValAttr< Activatorattr_activation
 
PrivValAttr< bool > attr_hot
 
PrivField< Activatorfield_press
 
PrivField< Activatorfield_release
 
PrivField< SumAgg< int > > field_duration
 

Protected Member Functions

void ie_start_duration ()
 
void ie_stop_duration ()
 
void ie_trigger ()
 
void ie_start_activation ()
 
void ie_stop_activation (bool real)
 
- Protected Member Functions inherited from iv::PrivValAttr_Owner
template<class T >
void Attribute_Set (PrivValAttr_I< T > *, T const &)
 
template<class T >
void Attribute_SetMode (PrivValAttr_I< T > *, Attribute::ValueMode)
 
virtual void PrivValAttr_Modified (Attribute *)
 

Detailed Description

It is required to call InputEvent::enable in constructor and InputEvent::disable in destructor of each child that overrides any InputEvent method.

Definition at line 13 of file InputEvent.hpp.

Constructor & Destructor Documentation

◆ InputEvent()

iv::InputEvent::InputEvent ( Instance inst)

Definition at line 8 of file InputEvent.cpp.

◆ ~InputEvent()

iv::InputEvent::~InputEvent ( )

Definition at line 27 of file InputEvent.cpp.

Member Function Documentation

◆ instance()

Instance * iv::InputEvent::instance ( ) const

Definition at line 31 of file InputEvent.cpp.

◆ status()

void iv::InputEvent::status ( iv::TableDebugView view)

Definition at line 36 of file InputEvent.cpp.

◆ ie_start_duration()

void iv::InputEvent::ie_start_duration ( )
protected

Definition at line 69 of file InputEvent.cpp.

◆ ie_stop_duration()

void iv::InputEvent::ie_stop_duration ( )
protected

Definition at line 84 of file InputEvent.cpp.

◆ ie_trigger()

void iv::InputEvent::ie_trigger ( )
protected

Definition at line 99 of file InputEvent.cpp.

◆ ie_start_activation()

void iv::InputEvent::ie_start_activation ( )
protected

Definition at line 113 of file InputEvent.cpp.

◆ ie_stop_activation()

void iv::InputEvent::ie_stop_activation ( bool  real)
protected

Definition at line 131 of file InputEvent.cpp.

Member Data Documentation

◆ cm

ClientMarker iv::InputEvent::cm

Definition at line 17 of file InputEvent.hpp.

◆ attr_eventEnabled

PrivValAttr< bool > iv::InputEvent::attr_eventEnabled

Definition at line 28 of file InputEvent.hpp.

◆ attr_activation

PrivValAttr< Activator > iv::InputEvent::attr_activation

Used for visualization and state tracking. This does not necessarily reflect just the input state but rather how that input is projected into destination attributes (through Field_RW's).

Definition at line 34 of file InputEvent.hpp.

◆ attr_hot

PrivValAttr< bool > iv::InputEvent::attr_hot

This is enabled when either duration is enabled or when some activation is hot (key is pressed and activation can happen as result of it in the future).

Definition at line 39 of file InputEvent.hpp.

◆ field_press

PrivField< Activator > iv::InputEvent::field_press

Logic that should be controlled by this input event will be connected to one or more of these fields.

Definition at line 44 of file InputEvent.hpp.

◆ field_release

PrivField< Activator > iv::InputEvent::field_release

Definition at line 45 of file InputEvent.hpp.

◆ field_duration

PrivField< SumAgg< int > > iv::InputEvent::field_duration

Definition at line 46 of file InputEvent.hpp.


The documentation for this class was generated from the following files: