Mouse Cursor

Cursor Styles

In originOS scripting, the cursor commands allow you to control the appearance and behavior of the cursor within the graphical user interface. The cursor can represent different states or styles, enhancing the user experience. Here are the available cursor commands:

Basic Cursor Styles

Sets the cursor to the default style, typically an arrow. Use Case: Resets the cursor to its standard appearance.

cursor "default"

Extended Cursor Styles

Displays a question mark, indicating that help or information is available. Use Case: Suggests that additional information is accessible.

cursor "help"

Lock

  • Locks the cursor, preventing it from moving freely across the screen.

  • Use Case: Useful when you want to restrict cursor movement during specific UI interactions or gameplay elements.

cursor "lock"

Unlock

  • Unlocks the cursor, allowing it to move freely again.

  • Use Case: Used to release the cursor from a locked state.

cursor "unlock"

Hide

  • Hides the cursor from view.

  • Use Case: Often used during specific UI interactions where the cursor's visibility is not required.

cursor "hide"

Now you have a comprehensive set of cursor commands to enhance the visual feedback and user interactions in your originOS applications. Choose the appropriate cursor styles and commands based on the specific context and requirements of your interface or game.

Last updated