Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Ctrl+H : display keyboard shortcut information

  • Loading branch information...
commit f184b856b400641130097a3e941fc4770a5044ec 1 parent 002aa33
Xiangfu Liu authored March 10, 2012

Showing 1 changed file with 33 additions and 1 deletion. Show diff stats Hide diff stats

  1. 34  src/shortcuts.c
34  src/shortcuts.c
... ...
@@ -1,7 +1,7 @@
1 1
 /*
2 2
  * Flickernoise
3 3
  * Copyright (C) 2010, 2011 Sebastien Bourdeauducq
4  
- * Copyright (C) 2011 Xiangfu Liu <xiangfu@sharism.cc>
  4
+ * Copyright (C) 2011 Xiangfu Liu <xiangfu@openmobilefree.net>
5 5
  *
6 6
  * This program is free software: you can redistribute it and/or modify
7 7
  * it under the terms of the GNU General Public License as published by
@@ -30,6 +30,7 @@
30 30
 #include "gui/guirender.h"
31 31
 #include "gui/flash.h"
32 32
 #include "shortcuts.h"
  33
+#include "renderer/osd.h"
33 34
 
34 35
 static int ctrl, alt;
35 36
 static int f9_pressed;
@@ -37,6 +38,35 @@ static rtems_interval f9_press_time;
37 38
 static int f10_pressed;
38 39
 static rtems_interval f10_press_time;
39 40
 
  41
+static void help(void)
  42
+{
  43
+	static int i = 0;
  44
+
  45
+	char *help[] = {
  46
+		"Ctrl+H: Help message",
  47
+		"Hold F9 / Hold left button: Web update",
  48
+		"F1: Set video in CVBS green",
  49
+		"F2: Set video in CVBS blue",
  50
+		"F3: Set video in CVBS red",
  51
+		"F5: Increase brightness",
  52
+		"F6: Decrease brightness",
  53
+		"F7: Increase contrast",
  54
+		"F8: Decrease contrast",
  55
+		"Esc: Exit fun",
  56
+		"F1: Show patch name(simple mode)",
  57
+		"F9: Next patch(simple mode)",
  58
+		"F11: Previous patch(simple mode)",
  59
+		"Ctrl+Alt+Del / Hold F10 / Hold middle button: Reboot",
  60
+		"Ctrl+Pause: Screenshot",
  61
+		"Ctrl+F1: Switch resolution",
  62
+		0,
  63
+	};
  64
+
  65
+	if(!fb_get_mode()) return;
  66
+	osd_event(help[i++]);
  67
+	if(!help[i]) i = 0;
  68
+}
  69
+
40 70
 static void switch_resolution(void)
41 71
 {
42 72
 	int res;
@@ -82,6 +112,8 @@ static void shortcuts_callback(mtk_event *e, int count)
82 112
 				switch_resolution();
83 113
 			else if(ctrl && (e[i].press.code == MTK_KEY_PAUSE))
84 114
 				fbgrab(NULL);
  115
+			else if(ctrl && (e[i].press.code == MTK_KEY_H))
  116
+				help();
85 117
 			else if(e[i].press.code == MTK_KEY_F9) {
86 118
 				f9_pressed = 1;
87 119
 				f9_press_time = rtems_clock_get_ticks_since_boot();

0 notes on commit f184b85

Please sign in to comment.
Something went wrong with that request. Please try again.