Skip to content
Snippets Groups Projects

Base system

Merged Dallin Nickel (djn011) requested to merge Base_System into master
6 files
+ 172
0
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 51
0
package model;
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;
}
}
Loading