You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
395 B
23 lines
395 B
10 years ago
|
package mightypork.gamecore.input;
|
||
10 years ago
|
|
||
10 years ago
|
|
||
10 years ago
|
public interface KeyBinder {
|
||
10 years ago
|
|
||
10 years ago
|
/**
|
||
|
* Bind handler to a keystroke, replace current handler if any
|
||
|
*
|
||
10 years ago
|
* @param stroke trigger keystroke
|
||
|
* @param task handler
|
||
10 years ago
|
*/
|
||
10 years ago
|
void bindKeyStroke(KeyStroke stroke, Runnable task);
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
/**
|
||
|
* Remove handler from a keystroke (id any)
|
||
10 years ago
|
*
|
||
10 years ago
|
* @param stroke stroke
|
||
10 years ago
|
*/
|
||
10 years ago
|
void unbindKeyStroke(KeyStroke stroke);
|
||
10 years ago
|
|
||
10 years ago
|
}
|