Skip to content

Instantly share code, notes, and snippets.

@titimoby
Last active August 29, 2015 14:23
Show Gist options
  • Save titimoby/d0f6bc57bfb3f4e868ab to your computer and use it in GitHub Desktop.
Save titimoby/d0f6bc57bfb3f4e868ab to your computer and use it in GitHub Desktop.
gimme this static please ;)
I need to access this static int:
http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/Input.Keys.html#LEFT
I tried:
import com.badlogic.gdx.Input
and/or
import com.badlogic.gdx.Input.Keys
then
use it either in a if statement or simply to test:
let leftKey = Input.Keys.LEFT()
==> Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: Input.Keys.LEFT()Ljava/lang/Object;
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Caused by: java.lang.NoSuchMethodError: Input.Keys.LEFT()Ljava/lang/Object;
at fr.insalyon.citi.golo.runtime.FunctionCallSupport.fallback(FunctionCallSupport.java:146)
or
let leftKey = com.badlogic.gdx.Input.Keys.LEFT()
==> Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: com.badlogic.gdx.Input.Keys.LEFT()Ljava/lang/Object;
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:120)
Caused by: java.lang.NoSuchMethodError: com.badlogic.gdx.Input.Keys.LEFT()Ljava/lang/Object;
at fr.insalyon.citi.golo.runtime.FunctionCallSupport.fallback(FunctionCallSupport.java:146)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment