His major creation: https://cocrea.world/@parrot1214/boonietopia
What is WitCat's Mouse?
This extension provides advanced functionalities for interacting with the mouse in your Gandi IDE projects. It goes beyond the basic "mouse down?" block in Scratch by allowing you to:
- ↖️ Distinguish mouse button clicks: Detect left, middle, right, first side, and second side mouse button clicks.
- 🖱️ Track mouse movement: Get the mouse's X/Y speed, scroll wheel movement, and click/double-click status.
- 🎨 Customize the mouse: Change the cursor style, upload custom cursor icons, and even set a custom sprite as the mouse pointer.
- ⇱ ⇲ Manage full screen: Detect full screen mode and set the resolution height. 📱 Mobile compatibility: Get finger touch information like position, ID, and pressure (for touch screen devices).
How to use WitCat’s Mouse?
Modules
WitCat's Mouse contains 2 modules:
Module | Description |
More mouse | Advanced mouse interaction features. |
Mobile terminal | Functionality for touch screen devices. |
Functions and Definitions
This block can change the project's resolution.
Triggers code execution when the user exits full screen mode.
Checks if the project is currently in full screen mode.
Returns the current resolution of the project.
more mouse
Sets a mouse hover tip that appears when the user pauses the mouse over a specific location in the project.
Shows or hides a hover tip that follows the mouse.
Enables or disables the right-click context menu. By default, right-click menus are enabled in Gandi IDE. You can use this block to disable them for specific reasons.
Similar to the original "mouse down?" block in Sensing category, but allows you to specify a specific mouse button (left, middle, right, first side, second side) and checks if the chosen button is currently pressed.
Checks if the mouse is clicked (single click) or double-clicked.
This reporter block returns a value that increases and decreases as the user scrolls the mouse wheel up and down. Positive values indicate scrolling up, and negative values indicate scrolling down.
This block functions the same as the reporter block above with the same name, but is a hat block version. It triggers code execution when the mouse is clicked/double-clicked.
Checks if a specified mouse button (left, middle, right, first side, second side) has been pressed for a certain number of seconds.
This block functions the same as the reporter block above with the same name, but is a hat block version. It triggers code execution when a specified mouse button (left, middle, right, first side, second side) has been pressed for a certain number of seconds.
Returns the duration in seconds that a specified mouse button (left, middle, right, first side, second side) has been held.
This is not a block, but a button in the block palette. Uploading an ICO file with this button allows you to retrieve its base64 code for use with other blocks.
Change the cursor style to various options like default, wait, help, etc.
This block allows you to set a custom ICO file (in base64 format) as the mouse cursor. Use the "upload ico and get base64" button to obtain the base64 code for your ICO file.
This block allows you to set a sprite from your project as the mouse cursor. While you can achieve this using the following code, this block simplifies the process.
This block allows you to lock or unlock the mouse cursor.
This block returns the speed of the mouse movement on the X or Y axis.
Mobile terminal
Returns the number of fingers currently touching the screen (for touch screen devices).
This reporter allows you to get specific information about a finger, such as its X or Y position, ID, or whether it's currently pressed.
Checks if a specific finger is currently touching the screen.
This reporter retrieves the speed traveled by a specific finger on the X axis, Y axis, or distance.
This reporter returns an array containing all currently touching fingers.
Checks if the user's device supports a touch screen or a mouse.
Checks if the user's device is a mobile device.
Unleash your creativity and explore the possibilities with WitCat's Mouse! Don't hesitate to refer to this documentation for detailed information on each block and its functionalities. Happy creating! 🎉