Class GLFWMouseAndKeyboardInput
Inheritance
java.lang.Object
GLFWMouseAndKeyboardInput
public class GLFWMouseAndKeyboardInput extends GLFWInput
Constructors
Declaration
public GLFWMouseAndKeyboardInput()
Methods
Destroys The Call Backs Created.
Note: -Will Cause Crash If Called Right Before Calling glfwFreeCallbacks(Use destroySafe();).
Declaration
Safely destroys the callbacks created. This function is safe to use before calling glfwDestroyCallbacks.
Declaration
public void destroySafe()
Declaration
public GLFWCursorEnterCallback getCrsNtrClbk()
Returns
Type |
Description |
GLFWCursorEnterCallback |
|
Declaration
public Vector2f getCursorPos()
Returns
Declaration
public float getScrollOffset()
Returns
Declaration
public void initInput(long hndl)
Parameters
Type |
Name |
Description |
long |
hndl |
|
Declaration
public boolean isCursorInWindow()
Returns
Declaration
public boolean isKeyDown(int key)
Parameters
Type |
Name |
Description |
int |
key |
|
Returns
Declaration
public boolean isKeyHeldDown(int key)
Parameters
Type |
Name |
Description |
int |
key |
|
Returns
Declaration
public boolean isKeyUp(int key)
Parameters
Type |
Name |
Description |
int |
key |
|
Returns
Declaration
public boolean isMouseButtonDown(int btn)
Parameters
Type |
Name |
Description |
int |
btn |
|
Returns
Declaration
public boolean isMouseButtonHeldDown(int btn)
Parameters
Type |
Name |
Description |
int |
btn |
|
Returns
Declaration
public boolean isMouseButtonUp(int btn)
Parameters
Type |
Name |
Description |
int |
btn |
|
Returns
Declaration
public boolean isMouseHidden()
Returns
Declaration
public boolean isMouseHiddenAndGrabbed()
Returns
Declaration
public void setCursorMode(int mode)
Parameters
Type |
Name |
Description |
int |
mode |
|
Declaration
public void setCursorPos(float x, float y)
Parameters
Type |
Name |
Description |
float |
x |
|
float |
y |
|
Declaration
public void setCursorPos(Vector2f newPos)
Parameters
Declaration
public void setScrollOffset(float offset)
Parameters
Type |
Name |
Description |
float |
offset |
|
Declaration