Skip to content
Snippets Groups Projects
Commit 13cda93e authored by NikolaBabic's avatar NikolaBabic
Browse files

Added HotkeyRegistration and InputEmulator interfaces

parent 8e2577af
No related branches found
No related tags found
1 merge request!32Base system
package model;
public interface HotkeyRegistration {
/**
* Registers a given hotkey.
* @param hotkey The hotkey to be registered. Must contain a unique ID.
* @return If the registration was successful.
*/
boolean registerHotkey(Hotkey hotkey);
/**
* Unregisters a hotkey with the given id.
* @param id The id of the hotkey to be unregistered.
* @return If the unregistration was successful.
*/
boolean unregisterHotkey(int id);
}
package model;
public interface InputEmulator {
/**
* Sends a given key to be emulated.
* @param keyCode The virtual keycode of the key.
* @param release True if the key is to be a key release input.
*/
void sendKey(int keyCode, boolean release);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment