ubuntuusers.de

Anhang: grim fandango on linux with xboxdrv and residualvm.txt

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
############################## GRIM.XBOXDRV
############################### by Frash Pikass, 2013
#
# I wanted to play some Grim Fandango on Linux with residualVM but the keyboard
# in that game is painful... So I thought
# "Why not making an xboxdrv script for it to work with my new Xbox360
# controller?"
#
# Works just fine both in camera relative perspective and character relative
# perspective!
#
# Maps the Xbox360 controller like this:
#	-Left analog stick: arrow keys
#	-D-Pad: arrow keys (duh)
#	-Left shoulder button: examine
#	-A: use, select, enter
#	-B: pick, put away
#	-X: run
#	-Y: inventory
#	-Start: pause
#	-Back: Esc (exit from menus)
#	-Home (big Xbox button): main menu
#
# If you don't like it, you can easily change it with your favourite
# configuration (or just screw yourself: that is free too!).
#
#~############################# INGREDIENTS
#
#	- a Linux machine
#
#	- residualVM	Install it with the following terminal command in most
#	  		linux distros:
#				sudo apt-get install residualvm
#
#	- xboxdrv	Install it with the following terminal command in most
#			linux distros:
#				sudo apt-get install xboxdrv
#			NOTE: Mind that you might need to disable xpad before you
#			      install/run xboxdrv. Do it this way:
#				sudo rmmod xpad
#
#	- Xbox360 pad	Buy it from your favourite retailer, preferably NOT
#			one of those big chains like Gamestop. They are EVIL
#
#	- Grim Fandango	Buy the game from a Childhood Reseller (TM)
#			Estract the *.LAB files from both disks in a folder.
#			Save the version 1.0.1 Grim Fandango patch in the same
#			folder (http://demos.residualvm.org/patches/gfupd101.exe)
#			More info available at
#			http://wiki.residualvm.org/index.php/Grim_Fandango
#
#~############################# INSTRUCTIONS
#
# - Save the script in a file called grim.xboxdrv
#
# - Open up your favourite terminal
#
# - Plug the controller in a spare USB port
#
# - Eventually disable xpad
#	sudo rmmod xpad
#
# - Launch xboxdrv with the script with the following command:
#	sudo xboxdrv -d --config grim.xboxdrv
#
# - Launch residualVM, load Grim Fandango and have fun
#
# - When you're done playing, terminate the script with Ctrl-C in the terminal
#
#~############################# ENJOY!

[xboxdrv]
ui-clear=true
trigger-as-button = true
dpad-as-button = true
#four-way-restrictor = true
silent = true
 
[ui-axismap]
x1=KEY_LEFT:KEY_RIGHT
y1=KEY_UP:KEY_DOWN

[ui-buttonmap]
#use
a=KEY_ENTER
#pick
b=KEY_P
#run
x=KEY_LEFTSHIFT
#inventory
y=KEY_I

#examine
lb = KEY_E

#unused
#lt = BTN_RIGHT
#rt = BTN_LEFT
# rb = KEY_PAGEDOWN
# tl = KEY_BACKSPACE
# tr = KEY_SPACE
# lt = KEY_VOLUMEDOWN
# rt = KEY_VOLUMEUP

[ui-buttonmap]
dl = KEY_LEFT
dr = KEY_RIGHT
du = KEY_UP
dd = KEY_DOWN
 
[ui-buttonmap]
start = KEY_PAUSE
back  = KEY_ESC
guide = KEY_F1
 
# EOF #
Anhang herunterladen

Diese Revision wurde am 5. Februar 2015 21:27 von ubuntuusers erstellt.