Logo
  • Features
  • Educators
  • What's New
  • Blog
  • Showcase
  • About us
  • Contact
Try it now!
WitCat's Mouse

WitCat's Mouse

💁‍♂️
This document is created by parrot from Gandi IDE community and edited by Gandi IDE Team.
image

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

image

This block can change the project's resolution.

💁‍♂️
⚠️ This block can change the project’s appearance and changes may be needed! Don’t use it unless you have a reason for changing the resolution.
image

Triggers code execution when the user exits full screen mode.

image

Checks if the project is currently in full screen mode.

image

Returns the current resolution of the project.

more mouse

image

Sets a mouse hover tip that appears when the user pauses the mouse over a specific location in the project.

image

Shows or hides a hover tip that follows the mouse.

image

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.

image

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.

image

Checks if the mouse is clicked (single click) or double-clicked.

image

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.

image

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.

image

Checks if a specified mouse button (left, middle, right, first side, second side) has been pressed for a certain number of seconds.

image

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.

image

Returns the duration in seconds that a specified mouse button (left, middle, right, first side, second side) has been held.

image

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.

image

Change the cursor style to various options like default, wait, help, etc.

image

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.

image

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.

image
image

This block allows you to lock or unlock the mouse cursor.

image

This block returns the speed of the mouse movement on the X or Y axis.

Mobile terminal

image

Returns the number of fingers currently touching the screen (for touch screen devices).

image

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.

image

Checks if a specific finger is currently touching the screen.

image

This reporter retrieves the speed traveled by a specific finger on the X axis, Y axis, or distance.

image

This reporter returns an array containing all currently touching fingers.

image

Checks if the user's device supports a touch screen or a mouse.

image

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! 🎉

💡
If you have any questions or suggestions, you can find us in the discord server: https://discord.gg/U3nyveCvRa
Logo

Designed by 2ndR with love

Discord