Skip to content
Snippets Groups Projects
Commit 28eb872d authored by NikolaBabic's avatar NikolaBabic
Browse files

Added Hotkey class

parent 76b4d252
No related branches found
No related tags found
1 merge request!32Base system
package model;
import java.io.Serializable;
public class Hotkey {
/**
* Virtual keycode of the hotkey.
*/
protected final int keyCode;
/**
* Unique ID of the hotkey.
*/
protected final int id;
/**
* Modifier for the hotkey.
*/
protected final Modifier modifier;
/**
* Constructs an immutable hotkey.
* @param keyCode The virtual keycode of the hotkey.
* @param id The unique ID of the hotkey.
* @param modifier The modifier of the hotkey.
*/
public Hotkey(int keyCode, int id, Modifier modifier) {
this.keyCode = keyCode;
this.id = id;
this.modifier = modifier;
}
/**
* Gets the Hotkeys virtual keyCode.
*/
public int getKeyCode() {
return keyCode;
}
/**
* Gets the hotkey's unique ID.
*/
public int getID() {
return id;
}
/**
* Get's the hotkey's modifier.
*/
public Modifier getModifier() {
return modifier;
}
}
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