mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-02 11:58:32 +00:00
fixup! refactor(core): unify touch and button handling, enable usage of both in one model
This commit is contained in:
parent
c8e4f3e98a
commit
da496ae1ed
@ -9,7 +9,7 @@ if __debug__:
|
|||||||
import trezorui2
|
import trezorui2
|
||||||
from storage import debug as storage
|
from storage import debug as storage
|
||||||
from storage.debug import debug_events
|
from storage.debug import debug_events
|
||||||
from trezor import log, loop, utils, wire
|
from trezor import log, loop, wire
|
||||||
from trezor.enums import MessageType
|
from trezor.enums import MessageType
|
||||||
from trezor.messages import DebugLinkLayout, Success
|
from trezor.messages import DebugLinkLayout, Success
|
||||||
from trezor.ui import display
|
from trezor.ui import display
|
||||||
|
@ -121,7 +121,7 @@ class Component:
|
|||||||
self.repaint = True
|
self.repaint = True
|
||||||
|
|
||||||
def dispatch(self, event: int, x: int, y: int) -> None:
|
def dispatch(self, event: int, x: int, y: int) -> None:
|
||||||
from trezor.utils import USE_TOUCH, USE_BUTTON
|
from trezor.utils import USE_BUTTON, USE_TOUCH
|
||||||
|
|
||||||
if event is RENDER:
|
if event is RENDER:
|
||||||
self.on_render()
|
self.on_render()
|
||||||
|
Loading…
Reference in New Issue
Block a user