C# 클래스 Nez.VirtualButton

A virtual input that is represented as a boolean. As well as simply checking the current button state, you can ask whether it was just pressed or released this frame. You can also keep the button press stored in a buffer for a limited time, or until it is consumed by calling consumeBuffer()
상속: VirtualInput
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
bufferTime float
firstRepeatTime float
multiRepeatTime float
nodes List

공개 메소드들

메소드 설명
VirtualButton ( ) : System.Collections.Generic
VirtualButton ( float bufferTime ) : System.Collections.Generic
addGamePadButton ( int gamepadIndex, Buttons button ) : VirtualButton

adds a GamePad buttons press to this VirtualButton

addGamePadDPad ( int gamepadIndex, Direction direction ) : VirtualButton

adds a GamePad DPad press to this VirtualButton

addGamePadLeftTrigger ( int gamepadIndex, float threshold ) : VirtualButton

adds a GamePad left trigger press to this VirtualButton

addGamePadRightTrigger ( int gamepadIndex, float threshold ) : VirtualButton

adds a GamePad right trigger press to this VirtualButton

addKeyboardKey ( Keys key ) : VirtualButton

adds a keyboard key to this VirtualButton

addKeyboardKey ( Keys key, Keys modifier ) : VirtualButton

adds a keyboard key with modifier to this VirtualButton. modifier must be in the down state for isPressed/isDown to be true.

addMouseLeftButton ( ) : VirtualButton

adds a left mouse click to this VirtualButton

addMouseRightButton ( ) : VirtualButton

adds a right mouse click to this VirtualButton

consumeBuffer ( ) : void
setRepeat ( float repeatTime ) : void
setRepeat ( float firstRepeatTime, float multiRepeatTime ) : void
update ( ) : void

메소드 상세

VirtualButton() 공개 메소드

public VirtualButton ( ) : System.Collections.Generic
리턴 System.Collections.Generic

VirtualButton() 공개 메소드

public VirtualButton ( float bufferTime ) : System.Collections.Generic
bufferTime float
리턴 System.Collections.Generic

addGamePadButton() 공개 메소드

adds a GamePad buttons press to this VirtualButton
public addGamePadButton ( int gamepadIndex, Buttons button ) : VirtualButton
gamepadIndex int Gamepad index.
button Buttons Button.
리턴 VirtualButton

addGamePadDPad() 공개 메소드

adds a GamePad DPad press to this VirtualButton
public addGamePadDPad ( int gamepadIndex, Direction direction ) : VirtualButton
gamepadIndex int Gamepad index.
direction Direction Direction.
리턴 VirtualButton

addGamePadLeftTrigger() 공개 메소드

adds a GamePad left trigger press to this VirtualButton
public addGamePadLeftTrigger ( int gamepadIndex, float threshold ) : VirtualButton
gamepadIndex int Gamepad index.
threshold float Threshold.
리턴 VirtualButton

addGamePadRightTrigger() 공개 메소드

adds a GamePad right trigger press to this VirtualButton
public addGamePadRightTrigger ( int gamepadIndex, float threshold ) : VirtualButton
gamepadIndex int Gamepad index.
threshold float Threshold.
리턴 VirtualButton

addKeyboardKey() 공개 메소드

adds a keyboard key to this VirtualButton
public addKeyboardKey ( Keys key ) : VirtualButton
key Keys Key.
리턴 VirtualButton

addKeyboardKey() 공개 메소드

adds a keyboard key with modifier to this VirtualButton. modifier must be in the down state for isPressed/isDown to be true.
public addKeyboardKey ( Keys key, Keys modifier ) : VirtualButton
key Keys Key.
modifier Keys Modifier.
리턴 VirtualButton

addMouseLeftButton() 공개 메소드

adds a left mouse click to this VirtualButton
public addMouseLeftButton ( ) : VirtualButton
리턴 VirtualButton

addMouseRightButton() 공개 메소드

adds a right mouse click to this VirtualButton
public addMouseRightButton ( ) : VirtualButton
리턴 VirtualButton

consumeBuffer() 공개 메소드

public consumeBuffer ( ) : void
리턴 void

setRepeat() 공개 메소드

public setRepeat ( float repeatTime ) : void
repeatTime float
리턴 void

setRepeat() 공개 메소드

public setRepeat ( float firstRepeatTime, float multiRepeatTime ) : void
firstRepeatTime float
multiRepeatTime float
리턴 void

update() 공개 메소드

public update ( ) : void
리턴 void

프로퍼티 상세

bufferTime 공개적으로 프로퍼티

public float bufferTime
리턴 float

firstRepeatTime 공개적으로 프로퍼티

public float firstRepeatTime
리턴 float

multiRepeatTime 공개적으로 프로퍼티

public float multiRepeatTime
리턴 float

nodes 공개적으로 프로퍼티

public List nodes
리턴 List