Package org.polyfrost.polyui.input
Object Keys.Companion
-
- All Implemented Interfaces:
public class Keys.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Keys.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static KeysfromValue(Integer value)get the key from the given value. final static StringtoString(Keys key, Short modifiers)return a string representation of this key combo. final static StringtoString(Character key, Short modifiers)return a string representation of this key combo. final static StringtoStringPretty(Keys key, Short modifiers)return a pretty string representation of this key combo. final static StringtoStringPretty(Character key, Short modifiers)return a pretty string representation of this key combo. -
-
Method Detail
-
toString
final static String toString(Keys key, Short modifiers)
return a string representation of this key combo.
For example, LSHIFT + LCONTROL + INSERT would return
"LSHIFT+LCONTROL+INSERT"
-
toString
final static String toString(Character key, Short modifiers)
return a string representation of this key combo.
For example, LSHIFT + LCONTROL +
awould return"LSHIFT+LCONTROL+a"
-
toStringPretty
final static String toStringPretty(Keys key, Short modifiers)
return a pretty string representation of this key combo.
For example, LSHIFT + LCONTROL + INSERT would return
"Left Shift + Left Control + Insert"
-
-
-
-