Skip to content

Add mouse_clicked usage example#722

Open
RUNQILIU-123 wants to merge 1 commit intothoth-tech:usage-examplesfrom
RUNQILIU-123:input-mouse-clicked-example
Open

Add mouse_clicked usage example#722
RUNQILIU-123 wants to merge 1 commit intothoth-tech:usage-examplesfrom
RUNQILIU-123:input-mouse-clicked-example

Conversation

@RUNQILIU-123
Copy link
Copy Markdown

Summary

This pull request adds an initial usage example for mouse_clicked in the input category.

Files added

  • mouse_clicked-1-example.cpp
  • mouse_clicked-1-example.py
  • mouse_clicked-1-example-top-level.cs
  • mouse_clicked-1-example-oop.cs
  • mouse_clicked-1-example.txt
  • mouse_clicked-1-example.png

What the example does

This example opens a window and places a red marker at the position of each left mouse click.

Testing

Tested by running:

  • C++ version
  • Python version

Verified that:

  • the window opens correctly
  • left mouse clicks are detected
  • a marker appears at the clicked position

Notes

This is an interactive usage example for the mouse_clicked function in the input category.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 5, 2026

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 43a787a
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/69d219c8adb79a0008f2c56a
😎 Deploy Preview https://deploy-preview-722--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown

@ZGT23 ZGT23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — the new mouse_clicked usage example is clear, practical, and renders correctly in the preview. The explanation, code samples, and output image work well together and make the feature easy to understand.

Just a small suggestion for future polish: it may be worth keeping the background handling fully consistent across all language variants, and, if applicable, mentioning C# explicitly in the testing section as well.

Approved from my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants