diff --git a/src/buttons.ts b/src/buttons.ts index bf9a649..91caa96 100644 --- a/src/buttons.ts +++ b/src/buttons.ts @@ -70,7 +70,13 @@ const navRightButton: IButton = { }; const navLeftButton: IButton = { - x: 100, + x: 140, + y: 625, + delay: 0.25, +}; + +const quitSettingsButton: IButton = { + x: 50, y: 625, delay: 0.25, }; @@ -131,6 +137,7 @@ export const TouchElements = new Map([ [ButtonKind.NavRightButton, navRightButton], [ButtonKind.NavLeftButton, navLeftButton], + [ButtonKind.QuitSettingsButton, quitSettingsButton], [ButtonKind.ApproveHoldButton, approveHoldButton], [ButtonKind.ApproveTapButton, approveTapButton], diff --git a/src/types.ts b/src/types.ts index b8129a1..344522b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -86,6 +86,7 @@ export const enum ButtonKind { NavRightButton, NavLeftButton, + QuitSettingsButton, ApproveHoldButton, ApproveTapButton, diff --git a/src/zondax.ts b/src/zondax.ts index 35eea35..8b5fc2a 100644 --- a/src/zondax.ts +++ b/src/zondax.ts @@ -23,7 +23,7 @@ export function zondaxMainmenuNavigation(model: TModel, clickArray?: number[]): ButtonKind.NavRightButton, ButtonKind.ToggleSettingButton1, ButtonKind.ToggleSettingButton1, - ButtonKind.PrevPageButton, + ButtonKind.QuitSettingsButton, ]); } const DEFAULT_MAINMENU_CLICKS = [1, 0, 0, 4, -5];