Skip to content
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

Adding Ploopyco functions so Host State Control can be implemented for Ploopy Nano #23953

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

t4corun
Copy link

@t4corun t4corun commented Jun 18, 2024

Addressed gap in Ploopy Nano where drag scroll and dpi cannot be accessed at the userspace level. User can now implement Host State Control in their keymap

Description

Extends on the current code base. Drag scroll variable and dpi cycling logic moved into functions so they can be called at the userspace level.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

N/A

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a chano the documentation.ge to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

- Functionality is opt-in via PLOOPY_HOST_LED_CONTROL
- Pressing Num lock cycles DPI
- Pressing Scroll lock enables Drag Scroll
- Enters bootloader when Num, Caps, and Scroll lock are on at the
same time
- Updated documentation
- Removed Host State control code from keyboard level
- Will leave it up to the user to implement it at the user level
@t4corun t4corun changed the title Enabling Host State Control for Ploopyco Adding Ploopyco functions so Host State Control can be implemented for Ploopy Nano Jun 19, 2024
@t4corun
Copy link
Author

t4corun commented Jun 19, 2024

Revised PR based on @obosob's Discord comment. Removed keyboard level Host State control. Leave it to the user to implement it at the keymap. Tested on my Ploopy Nano.

The previous commit still has the Host state control if that is still desired.

@drashna
Copy link
Member

drashna commented Jun 19, 2024

Revised PR based on obosob's Discord comment. Removed keyboard level Host State control. Leave it to the user to implement it at the keymap. Tested on my Ploopy Nano.

Agree with obosob. This is something best left implemented at the user level.

However the helper functions are a good idea and useful.

@drashna drashna requested a review from a team June 19, 2024 15:25
@t4corun
Copy link
Author

t4corun commented Jun 19, 2024

Thanks, but credit to @obosob for the idea. I was originally trying to call the ploopyco DRAG_SCROLL from my other QMK boards and was struggling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants