aboutsummaryrefslogtreecommitdiffstats
path: root/UefiMonitorTest/UefiMonitorTest.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-05-04 20:26:36 +0300
committerJoursoir <chat@joursoir.net>2022-05-04 20:33:33 +0300
commit42a1a3f9800e96621a91228918cf24f37639f510 (patch)
tree3452bc5fbdc34bc3dfeb101b0165601e649d5a3a /UefiMonitorTest/UefiMonitorTest.c
parent0127500438ea934128595daea542605e25db1583 (diff)
downloadumt-42a1a3f9800e96621a91228918cf24f37639f510.tar.gz
umt-42a1a3f9800e96621a91228918cf24f37639f510.tar.bz2
umt-42a1a3f9800e96621a91228918cf24f37639f510.zip
extend state actions API
Diffstat (limited to 'UefiMonitorTest/UefiMonitorTest.c')
-rw-r--r--UefiMonitorTest/UefiMonitorTest.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c
index c7034f0..63429d7 100644
--- a/UefiMonitorTest/UefiMonitorTest.c
+++ b/UefiMonitorTest/UefiMonitorTest.c
@@ -12,7 +12,7 @@
#include "MainMenu.h"
STATIC CONST UMT_STATE_ACTIONS mStateActions[UMT_STATE_END] = {
- { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuChangeValue }
+ { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuChangeParam, MainMenuChangeValue }
};
EFI_HII_HANDLE gUmtHiiHandle = NULL;
@@ -148,7 +148,11 @@ HandleInput (
switch (KeyData.Key.ScanCode) {
case SCAN_UP:
+ Ctx->Actions->ChangeParam (Ctx, -1);
+ break;
+
case SCAN_DOWN:
+ Ctx->Actions->ChangeParam (Ctx, +1);
break;
case SCAN_RIGHT: