micropython-micro-gui/gui/core
Bart Cerneels 1d4fece1b6 Allow other Input implementations
This enables alternative implementations that could, for instance, use
ESP touchpads:

```
prv = buttons.touch_0
sel = buttons.touch_1
nxt = buttons.touch_2

class TouchInput:
    def __init__(self, prv, sel, nxt):
        self._prev = Touch(prv, 0)
        self._sel = Touch(sel, 1)
        self._next = Touch(nxt, 2)

        self._prev.press_func(Screen.ctrl_move, (_PPREV,))
        self._sel.release_func(Screen.sel_ctrl)
        self._next.press_func(Screen.ctrl_move, (_NNEXT,))

    def precision(self, val):
        Screen.redraw_co()

    def adj_mode(self, v=None):
        Screen.redraw_co()

    def is_adjust(self):
        return False

disp = Display(ssd, input=TouchInput(prv, sel, nxt))
```
2022-07-17 23:56:12 +02:00
..
colors.py V0.1.5 3-button adjustment mode. 2022-02-06 12:05:38 +00:00
ugui.py Allow other Input implementations 2022-07-17 23:56:12 +02:00
writer.py