Class Focus
- java.lang.Object
-
- net.eternalclient.api.wrappers.input.Focus
-
public class Focus extends java.lang.Object
This class handles focus events.
-
-
Constructor Summary
Constructors Constructor Description Focus()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasFocus()
Checks if the client has focus.static boolean
isEnabled()
static void
sendFocusGained()
Sends a focus gained event to the client's canvas.static void
sendFocusLost()
Sends a focus lost event to the RSClient's canvas.static void
sendInternalFocusGained()
Sets the volatile focus of the client to true.static void
sendInternalFocusLost()
Sets the current mouse button to 0 and updates the volatile focus status to false.static void
setEnabled(boolean enabled)
-
-
-
Method Detail
-
isEnabled
public static boolean isEnabled()
-
setEnabled
public static void setEnabled(boolean enabled)
-
sendFocusGained
public static void sendFocusGained()
Sends a focus gained event to the client's canvas.
-
sendFocusLost
public static void sendFocusLost()
Sends a focus lost event to the RSClient's canvas.
-
hasFocus
public static boolean hasFocus()
Checks if the client has focus.- Returns:
- true if the client has focus, false otherwise.
-
sendInternalFocusGained
public static void sendInternalFocusGained()
Sets the volatile focus of the client to true.
-
sendInternalFocusLost
public static void sendInternalFocusLost()
Sets the current mouse button to 0 and updates the volatile focus status to false.
-
-