Documentation: ControlsComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
polymorph_hax bool false
polymorph_next_attack_frame int 0
enabled bool true
gamepad_indirect_aiming_enabled bool false
gamepad_fire_on_thumbstick_extend bool false
gamepad_fire_on_thumbstick_extend_threshold float 0.7
Privates
mButtonDownFire bool false
mButtonFrameFire int 0
mButtonLastFrameFire int -2
mButtonDownFire2 bool false
mButtonFrameFire2 int 0
mButtonDownAction bool false
mButtonFrameAction int 0
mButtonDownThrow bool false
mButtonFrameThrow int 0
mButtonDownInteract bool false
mButtonFrameInteract int 0
mButtonDownLeft bool false
mButtonFrameLeft int 0
mButtonDownRight bool false
mButtonFrameRight int 0
mButtonDownUp bool false
mButtonFrameUp int 0
mButtonDownDown bool false
mButtonFrameDown int 0
mButtonDownJump bool false
mButtonFrameJump int 0
mButtonDownRun bool false
mButtonFrameRun int 0
mButtonDownFly bool false
mButtonFrameFly int 0
mButtonDownDig bool false
mButtonFrameDig int 0
mButtonDownChangeItemR bool false
mButtonFrameChangeItemR int 0
mButtonCountChangeItemR int 0 note these have special count property
mButtonDownChangeItemL bool false
mButtonFrameChangeItemL int 0
mButtonCountChangeItemL int 0 note these have special count property
mButtonDownInventory bool false
mButtonFrameInventory int 0
mButtonDownHolsterItem bool false
mButtonFrameHolsterItem int 0
mButtonDownDropItem bool false
mButtonFrameDropItem int 0
mButtonDownKick bool false
mButtonFrameKick int 0
mButtonDownEat bool false
mButtonFrameEat int 0
mButtonDownLeftClick bool false NOTE! Ignores gamepad, if mouse is pressed this will be true.
mButtonFrameLeftClick int 0 NOTE! Ignores gamepad, if mouse is pressed this will be true.
mButtonDownRightClick bool false NOTE! Ignores gamepad, if mouse is pressed this will be true.
mButtonFrameRightClick int 0 NOTE! Ignores gamepad, if mouse is pressed this will be true.
mButtonDownTransformLeft bool false NOT IN USE!
mButtonFrameTransformLeft int 0 NOT IN USE!
mButtonDownTransformRight bool false NOT IN USE!
mButtonFrameTransformRight int 0 NOT IN USE!
mButtonDownTransformUp bool false NOT IN USE!
mButtonFrameTransformUp int 0 NOT IN USE!
mButtonCountTransformUp int 0 NOT IN USE!
mButtonDownTransformDown bool false NOT IN USE!
mButtonFrameTransformDown int 0 NOT IN USE!
mButtonCountTransformDown int 0 NOT IN USE!
mFlyingTargetY float 0
mAimingVector vec2 (100, 0)
mAimingVectorNormalized vec2 (1, 0) Aiming vector normalized to unit sphere.
mAimingVectorNonZeroLatest vec2 (100, 0)
mGamepadAimingVectorRaw vec2 (1, 0)
mJumpVelocity vec2 (0, 0) used mostly by AI only?
mMousePosition vec2 (0, 0)
mMousePositionRaw vec2 (0, 0)
mMousePositionRawPrev vec2 (0, 0)
mMouseDelta vec2 (0, 0)
mGamepadIndirectAiming vec2 (0, 0)
mGamePadCursorInWorld vec2 (0, 0) where the aiming cursor is in the world, updated by platformshooterplayer_system
mButtonDownDelayLineFire uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineFire2 uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineRight uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineLeft uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineUp uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineDown uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineKick uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineThrow uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineJump uint32_t 0 Used to delay input for some game effects
mButtonDownDelayLineFly uint32_t 0 Used to delay input for some game effects
input_latency_frames LensValue<int> 0 Adds latency to some inputs. Used by some game effects. Max 31.