1
0
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:
tychovrahe 2023-09-12 12:11:59 +02:00
parent c8e4f3e98a
commit da496ae1ed
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()