Position_InputNode.cpp
Go to the documentation of this file.
7 Position_InputNode::Position_InputNode( Instance * inst, Tester * tester, bool keeps_press_in_offspace ) :
138 void Position_InputNode::input_process_hover( InputRoot * root, Input::DeviceKey key, bool & press, bool & real, bool & offspace )
156 bool new_hover = press && hit && ( !offspace || ( this->keeps_press_in_offspace && this->_active.has_value() ) );
163 // hover is offspaced if we have active thing pressed in offspace (and keeps_press_in_offspace is true)
164 //if( this->keeps_press_in_offspace && this->_active.has_value() ) // PROBLEM - we need to reserve the hover
180 void Position_InputNode::input_process( InputRoot * root, Input::DeviceKey key, bool & press, bool & real, bool & offspace )
193 // Each position input event will block all input and binding is only to know which should be accepted (fallthrough works only on keys that are bound to attached inputId and only if enabled) .
199 //cout << "PositionInputEvent::input_process key="<<ivorium::StringIO_Write( key.first, this->object() )<<" hit="<<hit<<" press="<<press<<" real="<<real<<" offspace="<<offspace<<" queue_refresh="<<queue_refresh << endl;
219 this->cm.log( SRC_INFO, Defs::Log::Input, "Reject input / Duration is already active with different key." );
234 this->cm.log( SRC_INFO, Defs::Log::Input, "Reject input / Duration is active with different key." );
252 this->cm.log( SRC_INFO, Defs::Log::Input, "Accept input / Press Activation -> input type changed to offspace." );
278 this->cm.log( SRC_INFO, Defs::Log::Input, "Accept input / Release Activation (real: ", real ,") -> queue refresh." );
291 this->cm.log( SRC_INFO, Defs::Log::Input, "Block input (change it to offspace because fallthrough is not enabled)." );