LeviLamina
Loading...
Searching...
No Matches
InputComponent Class Reference
Inheritance diagram for InputComponent:

Classes

struct  ScreenHoverButtonMapping
struct  PressStats

Public Types

enum class  PressType : int { Single = 0 , Double = 1 }
enum class  PressType : int { Single = 0 , Double = 1 }

Public Member Functions

virtual ::std::unique_ptr<::UIComponent > clone (::UIControl &cloneOwner) const
virtual void reset ()
virtual void onVisibilityChanged (bool)
MCAPI InputComponent (::UIControl &owner)
MCAPI::InputComponent::PressType _detectDoubleClick (uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, bool isTTSTouchEnabled)
MCAPI bool _getContentPanelHover (::glm::vec2 const &pointerPosition)
MCAPI bool _sendButtonScreenEvent (::ScreenInputContext &context, ::ScreenButtonMapping const &buttonMapping, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::VisualTree &visualTree, ::UIAnimationController &animationController, ::InputMode inputMode)
MCAPI bool _sendHoverScreenEvent (::ScreenInputContext &context, ::VisualTree &visualTree, ::UIAnimationController &animationController, ::glm::vec2 const &position, bool alreadyHandled)
MCAPI bool _shouldHandleControllerDirection (::DirectionId deltaPosition, ::glm::vec2 const &)
MCAPI bool _shouldHandleMapping (::ScreenButtonMapping const &buttonMapping, ::InputComponent::PressType interpretAsPressType, uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode inputMode)
MCAPI bool _shouldHandlePressedMapping (::ScreenButtonMapping const &buttonMapping, uint state, ::ButtonState pointerPosition, ::glm::vec2 const &inputMode, ::InputMode)
MCAPI void addButtonMapping (uint fromButtonId, uint toButtonId, ::ButtonMappingType mappingType, ::ScreenEventScope scope, bool buttonUpRightOfFirstRefusal, bool handleSelect, bool handleDeselect, bool alternateInputScope, bool consumeEvent, ::ButtonMappingInputModeCondition inputModeCondition, bool ignoreInputScope)
MCAPI void addHoverButtonMapping (uint toButtonId, ::ScreenEventScope scope)
MCAPI void addRemappingMapping (::ScreenEventScope scope)
MCAPI bool canHandleDeselect (uint buttonId)
MCFOLD void cleanUpAllButtonStates ()
MCAPI void cleanUpButtonState (uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode, bool isTTSTouchEnabled)
MCFOLD bool getAlwaysListensToInput () const
MCAPI bool getGamepadDeflectionMode () const
MCFOLD bool getInlineModal () const
MCFOLD bool getModal () const
MCFOLD bool getPreventsTouchControls () const
MCAPI::ButtonHandleResult handleButtonEvent (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode inputMode, bool isTTSTouchEnabled)
MCAPI bool handleControllerDirection (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::DirectionId directionId, ::glm::vec2 const &deltaPosition, bool alreadyHandled)
MCAPI bool handleFocusLocation (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::glm::vec2 const &position, bool alreadyHandled)
MCAPI void handleInputModeChange (::VisualTree &mVisualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::InputMode newInputMode)
MCAPI bool handlePointerLocation (::VisualTree &visualTree, ::UIAnimationController &animationController, ::ScreenInputContext &context, ::glm::vec2 const &position, ::glm::vec2 const &deltaPosition, bool alreadyHandled)
MCAPI bool isWithinClipRegion (::glm::vec2 const &pointerPosition) const
MCAPI void setAlwaysHandleControllerDirection (bool enabled)
MCAPI void setAlwaysHandlePointer (bool enabled)
MCFOLD void setAlwaysListensToInput (bool enabled)
MCFOLD void setConsumeHoverEvents (bool consumeHoverEvents)
MCAPI void setGamepadDeflectionMode (bool enabled)
MCAPI void setHoverEnabled (bool hoverEnabled)
MCAPI void setIgnoreHoverChange (bool ignoreHoverChange)
MCAPI void setInlineModal (bool inlineModal)
MCAPI void setModal (bool modal)
MCAPI void setPreventsTouchControls (bool enabled)
MCAPI void * $ctor (::UIControl &owner)
MCAPI void $dtor ()
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCFOLD void $reset ()
MCAPI void $onVisibilityChanged (bool)
virtual::ComponentReceiveActionType receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
virtual::ComponentReceiveActionType receive (::ScreenEvent const &screenEvent)
virtual void onNotifyChildAdded ()
virtual void onNotifyChildRemoved ()
virtual void onRemoved ()
virtual void onAdded ()
virtual void onEnabledChanged (bool enabled)
virtual bool isRenderableComponent () const
virtual bool isCustomFrameUpdateComponent () const
virtual bool onLayoutChange ()
virtual void reload (::UIComponent const &rhs)
virtual::std::string const & getTextToSpeechComponentValue () const
MCFOLD::UIControl const & getOwner () const
MCFOLD::UIControl & getOwner ()
MCAPI bool isLocked () const
MCFOLD::ComponentReceiveActionType $receive (::VisualTree &visualTree, ::ScreenInputContext &context, ::UIAnimationController &animationController, ::ScreenEvent const &screenEvent)
MCFOLD::ComponentReceiveActionType $receive (::ScreenEvent const &screenEvent)
MCFOLD void $onNotifyChildAdded ()
MCFOLD void $onNotifyChildRemoved ()
MCFOLD void $onRemoved ()
MCFOLD void $onAdded ()
MCFOLD void $onEnabledChanged (bool enabled)
MCFOLD bool $isRenderableComponent () const
MCFOLD bool $isCustomFrameUpdateComponent () const
MCFOLD bool $onLayoutChange ()
MCFOLD void $reload (::UIComponent const &rhs)
MCFOLD::std::string const & $getTextToSpeechComponentValue () const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 8, 24, ::std::vector<::ScreenButtonMapping > > mButtonMappings
::ll::TypedStorage< 8, 24, ::std::vector<::InputComponent::ScreenHoverButtonMapping > > mHoverButtonMappings
::ll::TypedStorage< 1, 1, ::ScreenEventScope > mRemappingMappingScope
::ll::TypedStorage< 1, 1, bool > mAlwaysHandlePointer
::ll::TypedStorage< 1, 1, bool > mAlwaysHandleControllerDirection
::ll::TypedStorage< 1, 1, bool > mHasRemappingMapping
::ll::TypedStorage< 1, 1, bool > mAlwaysListensToInput
::ll::TypedStorage< 1, 1, bool > mModal
::ll::TypedStorage< 1, 1, bool > mInlineModal
::ll::TypedStorage< 1, 1, bool > mIgnoreHoverChange
::ll::TypedStorage< 1, 1, bool > mHoverEnabled
::ll::TypedStorage< 1, 1, bool > mConsumeHoverEvents
::ll::TypedStorage< 1, 1, bool > mPreventsTouchControl
::ll::TypedStorage< 1, 1, bool > mGamepadDeflectionMode
::ll::TypedStorage< 8, 64, ::std::unordered_map< uint, ::InputComponent::PressStats > > mPressStats
::ll::TypedStorage< 8, 8, ::UIControl & > mOwner

Member Function Documentation

◆ clone()

virtual ::std::unique_ptr<::UIComponent > InputComponent::clone ( ::UIControl & cloneOwner) const
virtual

Implements UIComponent.

◆ reset()

virtual void InputComponent::reset ( )
virtual

Implements UIComponent.

◆ onVisibilityChanged()

virtual void InputComponent::onVisibilityChanged ( bool )
virtual

Reimplemented from UIComponent.

◆ $vftable()

MCAPI void ** InputComponent::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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