summaryrefslogtreecommitdiff
path: root/recipes/scummvm/files/openmoko/openmoko-scummvm
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/scummvm/files/openmoko/openmoko-scummvm')
-rw-r--r--recipes/scummvm/files/openmoko/openmoko-scummvm19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/scummvm/files/openmoko/openmoko-scummvm b/recipes/scummvm/files/openmoko/openmoko-scummvm
new file mode 100644
index 0000000000..58eb2bbded
--- /dev/null
+++ b/recipes/scummvm/files/openmoko/openmoko-scummvm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+# Save current AUX Key mapping
+SAVE_KEY="$(xmodmap -pke | grep 'keycode 177')"
+
+# Map AUX Key to F5
+xmodmap -e "keycode 177 = F5"
+
+# Turn LCD feft
+xrandr -o left
+
+# Start the scummvm in fullscreen mode
+scummvm --fullscreen --themepath=/usr/share/scummvm/
+
+# Turn LCD normal
+xrandr -o normal
+
+# Restore the AUX Key mapping
+xmodmap -e "$SAVE_KEY"