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

Add Support for Analog Input Directionality. #119

Open
DataPlusProgram opened this issue Nov 23, 2024 · 2 comments
Open

Add Support for Analog Input Directionality. #119

DataPlusProgram opened this issue Nov 23, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@DataPlusProgram
Copy link

In my project, I’ve implemented directionality for analog inputs as follows:

image

I was wondering if it would be possible to add this feature to the main project?

The only caveat is that some users might prefer the standard icon instead of having it broken into the four cardinal directions. In such cases, a way to choose the desired behavior would need to be implemented.

@rsubtil rsubtil added the enhancement New feature or request label Dec 7, 2024
@rsubtil
Copy link
Owner

rsubtil commented Dec 14, 2024

(sorry, I "replied" to this issue last week, but seems like I forgot to click send 🤦‍♂️)

I've been thinking of implementing a "flair" system that allows to decorate icons with contextual actions like these for any icon, heavily inspired by Kenney's icon pack.
image

@DataPlusProgram
Copy link
Author

Yes it would be necessary to do that to avoid having to create a ton of new assets.

I would purpose a system as follows based on the Kenny assets:

Mode 1: Fully Restricted

This is the current way it works.
r_stick

Mode 2: Axis Restricted

I don't know a use case for this yet so this mode could possibly be ommited.

Name x-axis y-axis
Flair flair_arrows_horizontal flair_arrows_vertical
Example example_x_axis example_y_axis

Mode 3: Unrestricted

This is what I use in my current project.

Name Up Down Left Right
Flair flair_arrows_up flair_arrows_down flair_arrows_left flair_arrows_right
Example example_up example_down example_left example_right

A bonus with the flairs is that numbers could be used to denote device ID optionally as well.

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

No branches or pull requests

2 participants