summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/ui.c2
-rw-r--r--client/ui_dirc.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/client/ui.c b/client/ui.c
index cdf2f3b..6bc0986 100644
--- a/client/ui.c
+++ b/client/ui.c
@@ -87,7 +87,7 @@ void w2_ui_paint_statusbar() {
sprintf(temp, "(%s)", g_w2_state.info.build_str);
w2_wmvaddstr(g_w2_ui_pad_statusbar, 0, g_w2_ui_width / 2 - strlen(temp) / 2, temp);
- sprintf(temp, "%s %i%%", W2_UI_BATT_STAT_BATTERY, g_w2_state.battery_level);
+ sprintf(temp, "%s %imv", W2_UI_BATT_STAT_BATTERY, g_w2_state.info.battery_mv);
w2_wmvaddstr(g_w2_ui_pad_statusbar, 0, g_w2_ui_width - strlen(temp), temp);
sprintf(temp, "[%s]", g_w2_mode_strings[g_w2_state.mode]);
diff --git a/client/ui_dirc.c b/client/ui_dirc.c
index db91661..4e864d5 100644
--- a/client/ui_dirc.c
+++ b/client/ui_dirc.c
@@ -93,10 +93,10 @@ void w2_ui_dirc_paint(int left, int right) {
}
void w2_ui_onkey_dirc(int ch) {
- if (ch == 'e' || ch == 'w') g_w2_lf++;
- if (ch == 'd' || ch == 's') g_w2_lb++;
- if (ch == 'q' || ch == 'w') g_w2_rf++;
- if (ch == 'a' || ch == 's') g_w2_rb++;
+ if (ch == 'e' || ch == 'w' || ch == KEY_UP || ch == KEY_RIGHT) g_w2_lf++;
+ if (ch == 'd' || ch == 's' || ch == KEY_DOWN) g_w2_lb++;
+ if (ch == 'q' || ch == 'w' || ch == KEY_UP || ch == KEY_LEFT) g_w2_rf++;
+ if (ch == 'a' || ch == 's' || ch == KEY_DOWN) g_w2_rb++;
if (ch == ' ') w2_send_mode(W2_M_DIRC);
}