mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-16 08:35:10 +01:00
Improved Cursors
- Cursor position is now float instead of integer, making movement way smoother - Added a fallback cursor to use in Wayland sessions
This commit is contained in:
@@ -81,4 +81,12 @@ public enum VirtualMouseSkin implements Nameable {
|
||||
public static @NotNull Optional<VirtualMouseSkin> byId(@NotNull String id) {
|
||||
return Arrays.stream(values()).filter(mode -> mode.getName().equalsIgnoreCase(id)).findFirst();
|
||||
}
|
||||
public String getSpritePath() {
|
||||
return switch (this) {
|
||||
case DEFAULT_LIGHT -> "cursor/light/default";
|
||||
case DEFAULT_DARK -> "cursor/dark/default";
|
||||
case SECOND_LIGHT -> "cursor/light/secondary";
|
||||
case SECOND_DARK -> "cursor/dark/secondary";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user