Skip to content

Fix #631: Add MouseEvent and KeyEvent reference documentation #632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yashodipmore
Copy link

@yashodipmore yashodipmore commented Jun 19, 2025

Fixes Issue #631

This PR completely resolves the missing MouseEvent and KeyEvent reference documentation issue by adding comprehensive class references, updating all related function documentation, and providing practical examples.

Problem Summary

The Processing website was missing reference pages for MouseEvent and KeyEvent classes. Users could see methods like mousePressed(event) and keyPressed(event) in function signatures but had no documentation about:

  • What these event objects contained
  • How to use their methods (getX(), getY(), getButton(), getCount(), etc.)
  • When to use event objects vs global variables
  • How to detect modifier keys (Shift, Ctrl, Alt, Meta)

Solution Implemented

New Class References Created

  • MouseEvent class - Complete reference with 8 documented methods
  • KeyEvent class - Complete reference with 8 documented methods
  • Spanish translations - Full internationalization support for both classes

Enhanced Function Documentation

Updated 8 core functions to include event parameter documentation:

  • mousePressed(), mouseReleased(), mouseClicked()
  • mouseMoved(), mouseDragged(), mouseWheel()
  • keyPressed(), keyReleased(), keyTyped()

Comprehensive Examples Added

Created 6 new example files demonstrating:

  • Basic MouseEvent usage with button detection and coordinates
  • Advanced mouse wheel interactions with modifier keys
  • KeyEvent usage with modifier key combinations
  • Keyboard event logging and auto-repeat detection
  • Real-world scenarios like interactive drawing and text input

Files Added/Modified

New Files (10):

Screenshot 2025-06-19 110418
Screenshot 2025-06-19 110336

Copy link

netlify bot commented Jun 19, 2025

Deploy Preview for java-processing-faf822 ready!

Name Link
🔨 Latest commit 58b3bc1
🔍 Latest deploy log https://app.netlify.com/projects/java-processing-faf822/deploys/6853a1994ebd450008703788
😎 Deploy Preview https://deploy-preview-632--java-processing-faf822.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.

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.

1 participant