Sunshine master
Self-hosted game stream host for Moonlight.
platf::macos_input_t Struct Reference

macOS input source and target display state. More...

Public Attributes

CGDirectDisplayID display {}
 CoreGraphics identifier for the display receiving injected input.
 
CGFloat displayScaling {}
 Scale factor used to translate client coordinates to display pixels.
 
CGEventFlags kb_flags {}
 Active keyboard modifier flags currently held down by the client.
 
CGEventSourceRef keyboard_source {}
 CoreGraphics event source used for keyboard injection.
 
std::chrono::steady_clock::steady_clock::time_point last_mouse_event [3][2]
 Last mouse event.
 
bool mouse_down [3] {}
 Tracks whether the mouse button is currently pressed.
 
CGEventRef mouse_event {}
 Reusable CoreGraphics mouse event updated before posting.
 
int scroll_lines_per_detent {DEFAULT_SCROLL_LINES_PER_DETENT}
 Number of logical scroll lines represented by one wheel detent.
 
double scrollwheel_scaling {DEFAULT_SCROLLWHEEL_SCALING}
 Multiplier applied to incoming scroll-wheel deltas.
 
CGEventSourceRef source {}
 CoreGraphics event source used for mouse and scroll events.
 

Detailed Description

macOS input source and target display state.


The documentation for this struct was generated from the following file: