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 visible)
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 _shouldHandlePressedMapping (::ScreenButtonMapping const &buttonMapping, uint buttonId, ::ButtonState state, ::glm::vec2 const &pointerPosition, ::InputMode inputMode)
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 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 $dtor ()
MCAPI ::std::unique_ptr<::UIComponent > $clone (::UIControl &cloneOwner) const
MCAPI void $reset ()
MCAPI void $onVisibilityChanged (bool visible)
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::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 visible)
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: