mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-24 04:01:37 -04:00
ControlData can check its keycodes
This commit is contained in:
parent
635b41648c
commit
0479e13f6e
@ -212,6 +212,14 @@ public class ControlData implements Cloneable
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean containsKeycode(int keycodeToCheck){
|
||||||
|
for(int keycode : keycodes)
|
||||||
|
if(keycodeToCheck == keycode)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//Getters || setters (with conversion for ease of use)
|
//Getters || setters (with conversion for ease of use)
|
||||||
public float getWidth() {
|
public float getWidth() {
|
||||||
return Tools.dpToPx(width);
|
return Tools.dpToPx(width);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user