public final class ImGuiKeyData extends ImGuiStructDestroyable
ptr
Constructor and Description |
---|
ImGuiKeyData() |
ImGuiKeyData(long ptr) |
Modifier and Type | Method and Description |
---|---|
protected long |
create() |
float |
getAnalogValue()
0.0f..1.0f for gamepad values
|
boolean |
getDown()
True for if key is down
|
float |
getDownDuration()
Duration the key has been down (
< 0.0f: not pressed, 0.0f: just pressed, > 0.0f: time held) |
float |
getDownDurationPrev()
Last frame duration the key has been down
|
void |
setAnalogValue(float value)
0.0f..1.0f for gamepad values
|
void |
setDown(boolean value)
True for if key is down
|
void |
setDownDuration(float value)
Duration the key has been down (
< 0.0f: not pressed, 0.0f: just pressed, > 0.0f: time held) |
void |
setDownDurationPrev(float value)
Last frame duration the key has been down
|
destroy
isNotValidPtr, isValidPtr
protected long create()
create
in class ImGuiStructDestroyable
public boolean getDown()
public void setDown(boolean value)
public float getDownDuration()
<
0.0f: not pressed, 0.0f: just pressed, >
0.0f: time held)public void setDownDuration(float value)
<
0.0f: not pressed, 0.0f: just pressed, >
0.0f: time held)public float getDownDurationPrev()
public void setDownDurationPrev(float value)
public float getAnalogValue()
public void setAnalogValue(float value)