iv::SourceInputNode Class Reference

#include <SourceInputNode.hpp>

Public Member Functions

 SourceInputNode (Instance *inst)
 
 ~SourceInputNode ()
 
bool input (Input const *input)
 
void Add_InputNode (InputNode *node)
 
void Remove_InputNode (InputNode *node)
 
virtual void treeRefresh () override
 Typically called when structure of input processing tree changes. It sends all active inputs through the tree again, so that it can adapt to the new state of input sorting. More...
 
virtual void deactivateSubtree (InputNode *node) override
 
virtual void reserve_key (Input::DeviceKey key, bool reserve) override
 
virtual InputRootinput_getRoot () override
 
virtual void input_eachChild (std::function< void(InputNode *) > const &) override
 
virtual void input_childDisconnect (InputNode *) override
 
Instanceinstance () const
 
- Public Member Functions inherited from iv::InputNode
 InputNode (Instance *inst)
 
 ~InputNode ()
 
Instanceinstance () const
 
void status (iv::TableDebugView *view)
 
void inputEnabled (bool)
 
bool inputEnabled ()
 
void quiet (bool)
 
bool quiet () const
 
void input_deactivate ()
 
void input_treeRefresh ()
 
void input_setParent (InputNode *)
 
InputNodeinput_getParent ()
 
bool input_trigger_visit (InputRoot *root, Input::DeviceKey key)
 
bool input_visit (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace)
 
- Public Member Functions inherited from iv::FrameUpdateClient
 FrameUpdateClient (Instance *inst)
 
 ~FrameUpdateClient ()
 
Instanceinstance ()
 
void frame_update_pause ()
 sets update counter to 0 More...
 
void frame_update_resume ()
 sets update counter to 1 More...
 
void frame_update_inc ()
 increases update counter (we will be updating) More...
 
void frame_update_dec ()
 decreases update counter (vote against frame updates, only call this if frame_update_inc was called before) More...
 
bool frame_update_active ()
 

Public Attributes

ClientMarker cm
 
- Public Attributes inherited from iv::InputNode
ClientMarker cm
 
- Public Attributes inherited from iv::FrameUpdateClient
ClientMarker cm
 

Additional Inherited Members

- Protected Member Functions inherited from iv::InputNode
virtual bool input_trigger_process (InputRoot *root, Input::DeviceKey key)
 
virtual void input_process (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace)
 

Detailed Description

Definition at line 10 of file SourceInputNode.hpp.

Constructor & Destructor Documentation

◆ SourceInputNode()

iv::SourceInputNode::SourceInputNode ( Instance inst)

Definition at line 7 of file SourceInputNode.cpp.

◆ ~SourceInputNode()

iv::SourceInputNode::~SourceInputNode ( )

Definition at line 21 of file SourceInputNode.cpp.

Member Function Documentation

◆ input()

bool iv::SourceInputNode::input ( Input const *  input)

Definition at line 96 of file SourceInputNode.cpp.

◆ Add_InputNode()

void iv::SourceInputNode::Add_InputNode ( InputNode node)

Definition at line 26 of file SourceInputNode.cpp.

◆ Remove_InputNode()

void iv::SourceInputNode::Remove_InputNode ( InputNode node)

Definition at line 37 of file SourceInputNode.cpp.

◆ treeRefresh()

void iv::SourceInputNode::treeRefresh ( )
overridevirtual

Typically called when structure of input processing tree changes. It sends all active inputs through the tree again, so that it can adapt to the new state of input sorting.

Implements iv::InputRoot.

Definition at line 82 of file SourceInputNode.cpp.

◆ deactivateSubtree()

void iv::SourceInputNode::deactivateSubtree ( InputNode node)
overridevirtual

Implements iv::InputRoot.

Definition at line 154 of file SourceInputNode.cpp.

◆ reserve_key()

void iv::SourceInputNode::reserve_key ( Input::DeviceKey  key,
bool  reserve 
)
overridevirtual

Implements iv::InputRoot.

Definition at line 59 of file SourceInputNode.cpp.

◆ input_getRoot()

InputRoot * iv::SourceInputNode::input_getRoot ( )
overridevirtual

Reimplemented from iv::InputNode.

Definition at line 166 of file SourceInputNode.cpp.

◆ input_eachChild()

void iv::SourceInputNode::input_eachChild ( std::function< void(InputNode *) > const &  )
overridevirtual

Should consistently give the same nodes and in the same order, if they could react to the same inputs, causing need for priority resolution. When the given children change, InputNode::input_deactivate should be called on all children that were removed from the set and input_treeChanged should be called

Reimplemented from iv::InputNode.

Definition at line 53 of file SourceInputNode.cpp.

◆ input_childDisconnect()

void iv::SourceInputNode::input_childDisconnect ( InputNode node)
overridevirtual

Reimplemented from iv::InputNode.

Definition at line 42 of file SourceInputNode.cpp.

◆ instance()

Instance * iv::InputNode::instance

Definition at line 22 of file InputNode.cpp.

Member Data Documentation

◆ cm

ClientMarker iv::SourceInputNode::cm

Definition at line 14 of file SourceInputNode.hpp.


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