• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class GLFWMouseAndKeyboardInput

Inheritance
java.lang.Object
GLFWInput
GLFWMouseAndKeyboardInput
Inherited Members
GLFWInput.GLFW_ARROW_CURSOR
GLFWInput.GLFW_CURSOR
GLFWInput.GLFW_CURSOR_NORMAL
GLFWInput.GLFW_GAMEPAD_AXIS_LEFT_X
GLFWInput.GLFW_GAMEPAD_BUTTON_A
GLFWInput.glfw_Handle
GLFWInput.GLFW_JOYSTICK_1
GLFWInput.GLFW_KEY_ESCAPE
GLFWInput.GLFW_KEY_SPACE
GLFWInput.GLFW_MOD_ALT
GLFWInput.GLFW_MOD_CAPS_LOCK
GLFWInput.GLFW_MOD_CONTROL
GLFWInput.GLFW_MOD_NUM_LOCK
GLFWInput.GLFW_MOD_SHIFT
GLFWInput.GLFW_MOD_SUPER
GLFWInput.GLFW_MOUSE_BUTTON_1
GLFWInput.GLFW_PRESS
GLFWInput.GLFW_RELEASE
GLFWInput.GLFW_REPEAT
GLFWInput.GLFW_TRUE
Syntax
public class GLFWMouseAndKeyboardInput extends GLFWInput

Constructors

GLFWMouseAndKeyboardInput()

Declaration
public GLFWMouseAndKeyboardInput()

Methods

destroy()

Destroys The Call Backs Created.

Note: -Will Cause Crash If Called Right Before Calling glfwFreeCallbacks(Use destroySafe();).

Declaration
public void destroy()

destroySafe()

Safely destroys the callbacks created. This function is safe to use before calling glfwDestroyCallbacks.

Declaration
public void destroySafe()

getCrsNtrClbk()

Declaration
public GLFWCursorEnterCallback getCrsNtrClbk()
Returns
Type Description
GLFWCursorEnterCallback

getCursorPos()

Declaration
public Vector2f getCursorPos()
Returns
Type Description
Vector2f

getScrollOffset()

Declaration
public float getScrollOffset()
Returns
Type Description
float

initInput(long hndl)

Declaration
public void initInput(long hndl)
Parameters
Type Name Description
long hndl

isCursorInWindow()

Declaration
public boolean isCursorInWindow()
Returns
Type Description
boolean

isKeyDown(int key)

Declaration
public boolean isKeyDown(int key)
Parameters
Type Name Description
int key
Returns
Type Description
boolean

isKeyHeldDown(int key)

Declaration
public boolean isKeyHeldDown(int key)
Parameters
Type Name Description
int key
Returns
Type Description
boolean

isKeyUp(int key)

Declaration
public boolean isKeyUp(int key)
Parameters
Type Name Description
int key
Returns
Type Description
boolean

isMouseButtonDown(int btn)

Declaration
public boolean isMouseButtonDown(int btn)
Parameters
Type Name Description
int btn
Returns
Type Description
boolean

isMouseButtonHeldDown(int btn)

Declaration
public boolean isMouseButtonHeldDown(int btn)
Parameters
Type Name Description
int btn
Returns
Type Description
boolean

isMouseButtonUp(int btn)

Declaration
public boolean isMouseButtonUp(int btn)
Parameters
Type Name Description
int btn
Returns
Type Description
boolean

isMouseHidden()

Declaration
public boolean isMouseHidden()
Returns
Type Description
boolean

isMouseHiddenAndGrabbed()

Declaration
public boolean isMouseHiddenAndGrabbed()
Returns
Type Description
boolean

setCursorMode(int mode)

Declaration
public void setCursorMode(int mode)
Parameters
Type Name Description
int mode

setCursorPos(float x, float y)

Declaration
public void setCursorPos(float x, float y)
Parameters
Type Name Description
float x
float y

setCursorPos(Vector2f newPos)

Declaration
public void setCursorPos(Vector2f newPos)
Parameters
Type Name Description
Vector2f newPos

setScrollOffset(float offset)

Declaration
public void setScrollOffset(float offset)
Parameters
Type Name Description
float offset

update()

Declaration
public void update()
Back to top Generated by DocFX