### Install jphp-nativehook-ext using jppm Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/README.md Installs the nativehook extension for jphp using the jppm package manager. This command adds the nativehook dependency to your project, making its functionalities available. ```Shell jppm add nativehook ``` -------------------------------- ### Install nativehook extension using JPPM Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/api-docs/README.md This command adds the nativehook extension, specifically version 1.0.2, to your project using the JPPM package manager. It is a necessary step to integrate and utilize the nativehook functionalities within your application. ```JPPM jppm add nativehook@1.0.2 ``` -------------------------------- ### nativehook API Core Classes Overview Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/api-docs/README.md This section outlines the primary classes available within the nativehook extension's API. These classes are fundamental for interacting with and managing native input events such as keyboard and mouse actions. ```APIDOC Classes: nativehook: - NativeHook - NativeInputEvent - NativeKeyEvent - NativeMouseEvent - NativeMouseWheelEvent ``` -------------------------------- ### NativeInputEvent Class API Reference Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/api-docs/classes/nativehook/NativeInputEvent.md Provides a detailed API reference for the `NativeInputEvent` class, which serves as a base class for all native input events in the `jphp-nativehook-ext` project. It outlines the class's full name, source file, direct child classes, and its core properties. ```APIDOC Class: NativeInputEvent Full Name: nativehook\NativeInputEvent Source File: nativehook/NativeInputEvent.php Child Classes: - NativeKeyEvent - NativeMouseEvent Properties: - id: int - when: int ``` -------------------------------- ### NativeMouseEvent Class API Reference Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/api-docs/classes/nativehook/NativeMouseEvent.md API documentation for the `NativeMouseEvent` class, outlining its definition, inheritance from `NativeInputEvent`, source location, and specific properties for capturing mouse event details. ```APIDOC Class: NativeMouseEvent Extends: NativeInputEvent Source: nativehook/NativeMouseEvent.php Child Classes: - NativeMouseWheelEvent Properties: - button: int Description: The mouse button associated with the event (e.g., left, right, middle). - clickCount: int Description: The number of clicks (e.g., single-click, double-click) for the event. - x: int Description: The X coordinate of the mouse pointer relative to the screen. - y: int Description: The Y coordinate of the mouse pointer relative to the screen. ``` -------------------------------- ### NativeMouseWheelEvent Class API Reference Source: https://github.com/jphp-group/jphp-nativehook-ext/blob/master/api-docs/classes/nativehook/NativeMouseWheelEvent.md Defines the `NativeMouseWheelEvent` class, a specialized event class for mouse wheel interactions. It inherits common mouse event properties from `NativeMouseEvent` and adds specific properties related to wheel movement, such as scroll amount, scroll type, and wheel rotation. ```APIDOC Class: nativehook\NativeMouseWheelEvent Extends: nativehook\NativeMouseEvent Source: nativehook/NativeMouseWheelEvent.php Properties: scrollAmount: int scrollType: int wheelRotation: int Inherited Properties: See NativeMouseEvent ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.