16.09.2016, 20:11
Hello!
Could you help me with this issue:
In PlayerKeyStateChange event I can only handle old key but not new one:
Here what I found in Shoebill runtime code class, as you may see you did not propogate new key value at all:
How could I handle new key?
Could you help me with this issue:
In PlayerKeyStateChange event I can only handle old key but not new one:
Here what I found in Shoebill runtime code class, as you may see you did not propogate new key value at all:
PHP код:
@Override
public boolean onPlayerKeyStateChange(int playerId, int keys, int oldKeys) {
try {
Player player = sampObjectStore.getPlayer(playerId);
PlayerKeyStateChangeEvent event = new PlayerKeyStateChangeEvent(player, new PlayerKeyStateImpl(player, oldKeys));
rootEventManager.dispatchEvent(event, player);
return event.getResponse() > 0;
} catch (Throwable e) {
e.printStackTrace();
return false;
}
}

