inputlabs / alpakka_firmware

GNU General Public License v2.0
98 stars 20 forks source link

16-bits action identifiers #118

Open marcos-diaz opened 1 month ago

marcos-diaz commented 1 month ago

Actions (hid.h) should be a struct of 2x 8 bits, as:

struct {
  uint8_t id
  uint8_t value
} Action 

id being the same than now, but also including a value with different meaning depending on context.

That would allow to have a single PROC_PROFILE id, but passing the number of the profile as the value.

The same will apply for PROC_MACRO and PROC_ROTARY_MODE.

Additionally it would allow for new features such as custom axis value on digital buttons (GAMEPAD_AXIS_RZ_VALUE 255) and "flickstick-like" mouse binds (MOUSE_X_MOVE 100)