Maker Eric Nam has launched a library that delivers a customizable digital joystick, designed for anybody utilizing a touchscreen with the LVGL graphics library — with multi-touch help projected for a future launch.
“It is a digital joystick that works on LVGL,” Nam explains of his creation. “That is just like what you usually see in cellular video games. By touching and holding the center deal with and transferring it, the person can transfer the character as desired. The rationale I made it’s because I do not assume there’s a joystick that works on LVGL but, so I wished to provide it a attempt.”
LVGL is a graphics library designed particularly for embedded use on microcontrollers and microprocessors, sometimes used to ship something from a countdown timer to a full smartphone-like person interface. In Nam’s case, LVGL is getting used main to drive easy video games — although a joystick interface can be relevant to different use-cases, from distant drone management to driving a robotic arm.
Whereas there are many LVGL widgets out there, each inbuilt and from third events, Nam has but to discover a working digital joystick — therefore his venture to construct one. The dimensions, look, and place of the joystick on-screen will be adjusted, buttons added, and it is also doable to have two joysticks for twin-stick management — although this comes with the caveat that LVGL itself would not but help a number of simultaneous contact occasions.
“Since LVGL (the present model 9.2.0) doesn’t help multi-touch,” Nam explains of this latter restriction, “you can not fireplace two contact occasions on the identical time. Greater than two joysticks might be out there as quickly as LVGL is up to date.”
The library code has been launched on GitHub underneath the permissive MIT license.