Module mapping

Module mapping 

Source
Expand description

Mouse code mapping implementations Mouse button code mapping implementations

This module provides standard and custom mapping functionality for converting between mouse buttons and platform-specific codes.

Re-exports§

pub use custom::CustomButton;
pub use custom::CustomButtonMap;
pub use standard::parse_button_from_str;

Modules§

custom
Custom mouse button mapping support Custom mouse button mapping support
standard
Standard mouse button code mappings for cross-platform compatibility Standard mouse button code mappings for cross-platform compatibility

Functions§

get_button
Helper function to get button from platform-specific code
get_code
Helper function to get platform-specific code for a button
reverse_standard_mapping
Get reverse standard mapping (code to button) for a platform
standard_mapping
Get all standard button mappings for a platform as a hashmap