Hi there,

I would like to launch an sql request when we press a button :

Java Code:
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button) {
            	
       		db = new Database();
           	scores = db.UpdateScore(entryId, types[type]);<=== ERROR HERE ("entryId" and "type" not defined)
                return true;
                
            }
I need to pass these 2 parameters "int entryId" and "int type" inside the listener.

I tryied this :
Java Code:
public boolean touchDown (InputEvent event, float x, float y, int pointer, int button, int entryId, int type)
but the problème is that the touchDown function is a native function and then I can't add extra params.

Could someone please help ? thanks :)