Skip to content

Added scroll wheel to zoom in / out - since some apps require that feature#6779

Open
brantpastore wants to merge 1 commit into
Genymobile:masterfrom
brantpastore:master
Open

Added scroll wheel to zoom in / out - since some apps require that feature#6779
brantpastore wants to merge 1 commit into
Genymobile:masterfrom
brantpastore:master

Conversation

@brantpastore
Copy link
Copy Markdown

Added togglable
This pull request introduces a new on-screen overlay UI for debugging, adds a configurable mouse wheel action (scroll vs. pinch-to-zoom), and exposes new command-line options to control these features. The changes span CLI argument parsing, display rendering, input handling, and screen state management.

Overlay UI and Debugging Features:

  • Added a persistent on-screen overlay for debugging, including checkboxes (e.g., "Pinch Zoom on Scroll", "Overlay Toggle") and an info line, rendered directly in sc_render_overlay_ui in display.c. Overlay state and position are managed in struct sc_display and struct sc_screen. [1] [2] [3]
  • Introduced the --overlay CLI flag to keep the debug overlay visible, with corresponding option parsing and propagation to runtime structures. [1] [2] [3] [4] [5] [6]

Mouse Wheel Action Customization:

  • Added a --scroll-action CLI option to choose between normal scrolling or sending pinch-to-zoom keycodes for mouse wheel events. This is parsed and stored in the new enum sc_scroll_action and propagated through options and input manager structures. [1] [2] [3] [4] [5] [6] [7] [8] [9]

Display and Input Handling Enhancements:

  • Extended struct sc_display and struct sc_input_manager to track overlay and scroll action state, and updated the display rendering pipeline to draw the overlay when enabled. [1] [2] [3] [4] [5]
  • Updated screen rendering and initialization logic to manage overlay visibility, position, and state transitions, including support for temporary overlays and TTL-based hiding. [1] [2]

Command-line Interface and Defaults:

  • Added new option constants, parsing logic, and default values for overlay and scroll action features in cli.c and options.c. [1] [2] [3] [4] [5]

These changes lay the groundwork for more interactive debugging and user customization of input behavior.

  • Overlay UI and persistent overlay option: [1] [2] [3] [4] [5]
  • Mouse wheel scroll/zoom action customization: [1] [2] [3] [4] [5] [6] [7] [8]
  • Display and input manager structure updates: [1] [2] [3] [4] [5]
  • Screen rendering and overlay state management: [1] [2]
  • CLI option parsing and defaults: [1] [2] [3] [4] [5]moveable window that enables scroll to zoom in / out. Added scroll to zoom in / out - since some apps require that feature. Added debugging output around motion events.

Added moveable window that enables scroll to zoom in / out.
Added scroll to zoom in / out - since some apps require that feature.
Added debugging output around motion events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants