diff options
| author | James Meyer <james.meyer@operamail.com> | 2013-02-19 21:10:18 (GMT) |
|---|---|---|
| committer | James Meyer <james.meyer@operamail.com> | 2013-02-19 21:10:18 (GMT) |
| commit | 2648e999d277eac5c3d331a3609bcc73fafbea71 (patch) | |
| tree | 40951fb8e7fdbe28a0baa324ae615055203f1e2e /abs/extra/sdlmame | |
| parent | c759b5e0c4aa6fc37412b4dee2cf9ad993fd376d (diff) | |
| parent | 7e6f7ca174e1af67178dc5293a312a4a733eb095 (diff) | |
| download | linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.zip linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.tar.gz linhes_pkgbuild-2648e999d277eac5c3d331a3609bcc73fafbea71.tar.bz2 | |
Merge branch 'testing'
# By James Meyer (1091) and others
# Via James Meyer (5) and others
* testing: (1148 commits)
LinHES-config: during install don't kill off lirc. This keeps the remote active all the way to the finish
Change version numbers to 8.0 to match the release number. LinHES-conifg LinHES-system mythdb-initial runit-scripts supplemental-web
LinHES-conifig: mv_install.py for the last partition don't go all the way to the end. Gotta leave room for gpt tables.
xf86-video-ati: xorg ati driver.
LinHES-config: timezip.py add syncing up of parental lvl passwords and starting level with MBE.
LinHES-system: correct the logic for breaking out of the wmctrl loop. As written it would break out of the inner loop..but not the 60 iteration loop.
e16_theme_settings: remove slide-in prop for new windows. For whatever reason this was preventing mplayer from being positioned correctly for appletrailers.
LinHES-config, mythinstall: change case of hd_pvr and serial to all lower refs #902
zilog-firmware: firmware for TX support of the hdpvr and pvr-150 In general I can't recommend anybody using these transmitters but including the firmware just in case someone really wants to
linhes-udev-rules: added hdprv_lirc rule. All of these lirc rules are limited to exactly one device. If more then one device is present then only the last device in init will get the symlink
runit-scripts: fix logging for igdeamon, add support to remote init script so that the blaster is always the first device in the chain. added support specificly for hd_pvr
LinHES-system: add lh_system_restore and lh_system_backup. These scripts are called from the mythmenu. refs #900
iguanair: rebuild with python 2.7
LinHES-system: msg_daemon.py fix init and nasty bug related to timeout. In a nutshell timeout wouldn't work unless a msg without a timeout was called first.
linhes-udev-rules: add rules for mce,streamzap,serial lirc devices.
mythinstall: recompile for matching libs
mythtv: latest .25-fixes and change mythbackup/restore call lh_system_$op to replace mythbackup/mythrestore. mythbackup no longer works correctly with the new windowmanager
linhes-scripts: myth2mp3, myth2x264, myth2xvid: use mythutil to get cutlist
LinHES-config, supplimental-web: Fix proxy numbering for Ceton infiniTV
linhes-system: add additional stuff to the system backup and also introduced an exclude file. The exclude/include files are locate in /home/mythtv/backup_config/
...
Diffstat (limited to 'abs/extra/sdlmame')
| -rw-r--r-- | abs/extra/sdlmame/ChangeLog | 5 | ||||
| -rw-r--r-- | abs/extra/sdlmame/PKGBUILD | 59 | ||||
| -rw-r--r-- | abs/extra/sdlmame/mame-0137-wiimote.diff | 424 | ||||
| -rw-r--r-- | abs/extra/sdlmame/sdlmame.install | 25 | ||||
| -rw-r--r-- | abs/extra/sdlmame/sdlmame.sh | 10 |
5 files changed, 33 insertions, 490 deletions
diff --git a/abs/extra/sdlmame/ChangeLog b/abs/extra/sdlmame/ChangeLog deleted file mode 100644 index 872c595..0000000 --- a/abs/extra/sdlmame/ChangeLog +++ /dev/null @@ -1,5 +0,0 @@ -2008-02-13 JJDaNiMoTh <jjdanimoth.aur@gmail.com> - * 0.123 version - -2008-01-22 JJDaNiMoTh <jjdanimoth.aur@gmail.com> - * 0.122u6 version diff --git a/abs/extra/sdlmame/PKGBUILD b/abs/extra/sdlmame/PKGBUILD index 7e1aabc..daf290a 100644 --- a/abs/extra/sdlmame/PKGBUILD +++ b/abs/extra/sdlmame/PKGBUILD @@ -1,24 +1,24 @@ -# $Id: PKGBUILD 50675 2011-06-29 12:53:08Z spupykin $ +# $Id: PKGBUILD 80432 2012-11-21 14:28:56Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> # Contributor: robb_force <robb_force@holybuffalo.net> # Maintainer: JJDaNiMoTh <jjdanimoth@gmail.com> -_patchlevel=0 -_basever=0.143 +_patchlevel=3 +_basever=0.147 pkgname=sdlmame if [ ${_patchlevel} -ne 0 ]; then - pkgver=${_basever}u${_patchlevel} + pkgver=${_basever}.u${_patchlevel} else pkgver=${_basever} fi -pkgrel=2 +pkgrel=1 pkgdesc="A port of the popular Multiple Arcade Machine Emulator using SDL with OpenGL support." url="http://mamedev.org/" license=('custom:MAME License') arch=('i686' 'x86_64') depends=('sdl>=1.2.11' 'libxinerama' 'gconf' 'sdl_ttf' 'gtk2') -makedepends=('unzip' 'nasm' 'mesa') +makedepends=('unzip' 'nasm' 'mesa' 'glu' 'wget') DLAGENTS=('http::/usr/bin/wget -U "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.2) Gecko/20090804 Shiretoko/3.5.2" -c -t 3 --waitretry=3 -O %o %u') install=sdlmame.install @@ -30,38 +30,27 @@ source=("mame${_basever/./}s.zip::http://mamedev.org/downloader.php?file=release "sdlmame.sh" "extras.tar.gz" ${_patches}) -md5sums=('2d95b9d9f79a97a690f62284e4db0e7e' - '3119ccfa1e970eba4467df31208adaf0' - '420b61240bf5ae11615ba7c6100ee00d') +md5sums=('b5fc953ee0351f5145b9d704603f2ee3' + 'e11a7d26704a9e2cff223b9b867d6a05' + '420b61240bf5ae11615ba7c6100ee00d' + '7f2dbea383138a6ae2bbaac3b32376d6' + 'c0306cbf583309d23549529f441e97f2' + '8851533ae3f692e436bc399b773c4fcb') build() { cd $srcdir/ - if [ $NOEXTRACT -eq 0 ]; then unzip mame.zip find . -type f -not -name \*.png | xargs perl -pi -e 's/\r\n?/\n/g' for i in `seq 1 ${_patchlevel}`; do - patch -p0 -E <${_basever/./}u$i.diff + msg "Patch#$i" + patch -p0 -E <${_basever/./}u$i.diff || true # FIXME: done - sed -i 's/-Werror//' makefile - sed -i 's/LDFLAGS = -Wl,--warn-common/LDFLAGS = -Wl,--warn-common -Wl,-zmuldefs/' makefile - fi - - # Modify the make options based on the user's architecture - if [ "$CARCH" == "x86_64" ]; then - echo "Compiling for AMD64..." - make AMD64=1 PTR64=1 - make tools AMD64=1 PTR64=1 - elif [ "$CARCH" == "i686" ]; then - make I686=1 - make tools I686=1 - else - echo "Compiling for i386..." - make PM=1 - make tools PM=1 fi - + make NOWERROR=1 OPTIMIZE=2 + make tools NOWERROR=1 OPTIMIZE=2 } + package() { cd $srcdir/ # Install the sdlmame script @@ -81,15 +70,13 @@ package() { install -m755 ldverify $pkgdir/usr/share/${pkgname}/ldverify install -m755 ldresample $pkgdir/usr/share/${pkgname}/ldresample -# install -m755 makemeta $pkgdir/usr/share/${pkgname}/makemeta -# install -m755 runtest $pkgdir/usr/share/${pkgname}/runtest -# install -m644 ui.bdf $pkgdir/usr/share/${pkgname}/ui.bdf - # Install the extra bits install -d $pkgdir/usr/share/${pkgname}/{artwork,ctrlr,keymaps,shader} install -d $pkgdir/usr/share/man/man1 + install -d $pkgdir/usr/share/man/man6 install -m644 src/osd/sdl/shader/glsl*.*h $pkgdir/usr/share/${pkgname}/shader/ - install -m644 src/osd/sdl/man/* $pkgdir/usr/share/man/man1/ + install -m644 src/osd/sdl/man/*.1* $pkgdir/usr/share/man/man1/ + install -m644 src/osd/sdl/man/*.6* $pkgdir/usr/share/man/man6/ install -m644 $srcdir/artwork/* $pkgdir/usr/share/${pkgname}/artwork/ install -m644 $srcdir/ctrlr/* $pkgdir/usr/share/${pkgname}/ctrlr/ @@ -98,5 +85,11 @@ package() { # Include the license install -Dm644 docs/license.txt $pkgdir/usr/share/licenses/${pkgname}/license.txt + # FS#28203 + sed -i 's|KEYCODE_2_PAD|KEYCODE_2PAD|' $pkgdir/usr/share/sdlmame/ctrlr/*.cfg + sed -i 's|KEYCODE_4_PAD|KEYCODE_4PAD|' $pkgdir/usr/share/sdlmame/ctrlr/*.cfg + sed -i 's|KEYCODE_6_PAD|KEYCODE_6PAD|' $pkgdir/usr/share/sdlmame/ctrlr/*.cfg + sed -i 's|KEYCODE_8_PAD|KEYCODE_8PAD|' $pkgdir/usr/share/sdlmame/ctrlr/*.cfg + find $pkgdir -type f -exec strip {} \; } diff --git a/abs/extra/sdlmame/mame-0137-wiimote.diff b/abs/extra/sdlmame/mame-0137-wiimote.diff deleted file mode 100644 index 8f29b8e..0000000 --- a/abs/extra/sdlmame/mame-0137-wiimote.diff +++ /dev/null @@ -1,424 +0,0 @@ -diff -BNburp mame-org/makefile mame-wiimote/makefile -diff -BNburp mame-org/src/osd/sdl/input.c mame-wiimote/src/osd/sdl/input.c ---- mame-org/src/osd/sdl/input.c 2010-02-28 04:16:40.000000000 +0100 -+++ mame-wiimote/src/osd/sdl/input.c 2010-05-07 13:53:59.000000000 +0200 -@@ -17,6 +17,12 @@ - #include <ctype.h>
- #include <stddef.h>
-
-+// for xinput -+#include <X11/Xlib.h> -+#include <X11/extensions/XInput.h> -+#include <X11/Xutil.h> -+ -+ - // MAME headers
- #include "emu.h"
- #include "ui.h"
-@@ -53,6 +59,16 @@ enum
- #define MAX_POV 4
- #define MAX_DEVMAP_ENTRIES 16
-
-+//For xinput -+#define INVALID_EVENT_TYPE -1 -+static int motion_type = INVALID_EVENT_TYPE; -+static int button_press_type = INVALID_EVENT_TYPE; -+static int button_release_type = INVALID_EVENT_TYPE; -+static int key_press_type = INVALID_EVENT_TYPE; -+static int key_release_type = INVALID_EVENT_TYPE; -+static int proximity_in_type = INVALID_EVENT_TYPE; -+static int proximity_out_type = INVALID_EVENT_TYPE; -+ - //============================================================
- // MACROS
- //============================================================
-@@ -86,6 +102,16 @@ struct _mouse_state
- INT32 buttons[MAX_BUTTONS];
- };
-
-+// state information for a lightgun -+typedef struct _lightgun_state lightgun_state; -+struct _lightgun_state -+{ -+ INT32 lX, lY; -+ INT32 buttons[MAX_BUTTONS]; -+ XID deviceid; //Xinput device id -+ INT32 maxx,maxy; -+ INT32 minx,miny; -+}; -
- // state information for a joystick; DirectInput state must be first element
- typedef struct _joystick_state joystick_state;
-@@ -115,6 +141,7 @@ struct _device_info
- keyboard_state keyboard;
- mouse_state mouse;
- joystick_state joystick;
-+ lightgun_state lightgun; - };
- };
-
-@@ -164,10 +191,13 @@ struct _device_map_t
-
- static device_map_t joy_map;
- static device_map_t mouse_map;
-+static device_map_t lightgun_map; - static device_map_t keyboard_map;
-
- static int sixaxis_mode;
-
-+Display *XDisplay; -+ -
- //============================================================
- // PROTOTYPES
-@@ -671,6 +703,244 @@ static device_info *devmap_class_registe - return devinfo;
- }
-
-+//============================================================ -+// WiiMote lightgun stuff -+//============================================================ -+ -+//Copypasted from xinfo -+XDeviceInfo* -+find_device_info(Display *display, -+ char *name, -+ Bool only_extended) -+{ -+ XDeviceInfo *devices; -+ XDeviceInfo *found = NULL; -+ int loop; -+ int num_devices; -+ int len = strlen(name); -+ Bool is_id = True; -+ XID id=0; -+ -+ for(loop=0; loop<len; loop++) { -+ if (!isdigit(name[loop])) { -+ is_id = False; -+ break; -+ } -+ } -+ -+ if (is_id) { -+ id = atoi(name); -+ } -+ -+ devices = XListInputDevices(display, &num_devices); -+ -+ for(loop=0; loop<num_devices; loop++) { -+ if ((!only_extended || (devices[loop].use >= IsXExtensionDevice)) && -+ ((!is_id && strcmp(devices[loop].name, name) == 0) || -+ (is_id && devices[loop].id == id))) { -+ if (found) { -+ fprintf(stderr, -+ "Warning: There are multiple devices named \"%s\".\n" -+ "To ensure the correct one is selected, please use " -+ "the device ID instead.\n\n", name); -+ } else { -+ found = &devices[loop]; -+ } -+ } -+ } -+ return found; -+} -+ -+//Copypasted from xinfo -+static int -+register_events(Display *dpy, -+ XDeviceInfo *info, -+ char *dev_name, -+ Bool handle_proximity) -+{ -+ int number = 0; /* number of events registered */ -+ XEventClass event_list[7]; -+ int i; -+ XDevice *device; -+ Window root_win; -+ unsigned long screen; -+ XInputClassInfo *ip; -+ -+ screen = DefaultScreen(dpy); -+ root_win = RootWindow(dpy, screen); -+ -+ device = XOpenDevice(dpy, info->id); -+ -+ if (!device) { -+ fprintf(stderr, "unable to open device %s\n", dev_name); -+ return 0; -+ } -+ -+ if (device->num_classes > 0) { -+ for (ip = device->classes, i=0; i<info->num_classes; ip++, i++) { -+ switch (ip->input_class) { -+ case KeyClass: -+ DeviceKeyPress(device, key_press_type, event_list[number]); number++; -+ DeviceKeyRelease(device, key_release_type, event_list[number]); number++; -+ break; -+ -+ case ButtonClass: -+ DeviceButtonPress(device, button_press_type, event_list[number]); number++; -+ DeviceButtonRelease(device, button_release_type, event_list[number]); number++; -+ break; -+ -+ case ValuatorClass: -+ DeviceMotionNotify(device, motion_type, event_list[number]); number++; -+ fprintf(stderr, "Motion = %i\n",motion_type); -+ if (handle_proximity) { -+ ProximityIn(device, proximity_in_type, event_list[number]); number++; -+ ProximityOut(device, proximity_out_type, event_list[number]); number++; -+ } -+ break; -+ -+ default: -+ fprintf(stderr, "unknown class\n"); -+ break; -+ } -+ } -+ -+ if (XSelectExtensionEvent(dpy, root_win, event_list, number)) { -+ fprintf(stderr, "error selecting extended events\n"); -+ return 0; -+ } -+ } -+ return number; -+} -+ -+ -+ -+static void sdlinput_register_lightguns(running_machine *machine) -+{ -+ int index; -+ XExtensionVersion *version; -+ -+ lightgun_enabled = options_get_bool(mame_options(), OPTION_LIGHTGUN); -+ devmap_init(machine, &lightgun_map, SDLOPTION_LIGHTGUNINDEX, 8, "Lightgun mapping"); -+ -+ XDisplay = XOpenDisplay(NULL); -+ -+ if (XDisplay == NULL) { -+ fprintf(stderr, "Unable to connect to X server\n"); -+ return; -+ } -+ -+ version = XGetExtensionVersion(XDisplay, INAME); -+ -+ if (!version || (version == (XExtensionVersion*) NoSuchExtension)) { -+ fprintf(stderr, "xinput extension not available!\n"); -+ return; -+ } -+ -+ -+ for (index=0; index<8; index++) { -+ XDeviceInfo *info; -+ if (strlen(lightgun_map.map[index].name)!=0) { -+ device_info *devinfo; -+ char *name=lightgun_map.map[index].name; -+ char defname[512]; -+ devinfo = devmap_class_register(machine, &lightgun_map, index, &lightgun_list, DEVICE_CLASS_LIGHTGUN); -+ fprintf(stderr, "%i: %s\n",index, name); -+ info=find_device_info(XDisplay, name, 0); -+ if (!info) continue; -+ -+ //Grab device info and translate to stuff mame can use -+ if (info->num_classes > 0) { -+ XAnyClassPtr any = (XAnyClassPtr) (info->inputclassinfo); -+ int i; -+ for (i=0; i<info->num_classes; i++) { -+ int button; -+ XValuatorInfoPtr v; -+ XAxisInfoPtr a; -+ int j; -+ XButtonInfoPtr b; -+ switch (any->c_class) { -+ case ButtonClass: -+ b = (XButtonInfoPtr) any; -+ for (button = 0; button < b->num_buttons; button++) -+ { -+ input_item_id itemid; -+ sprintf(defname, "B%d", button + 1); -+ itemid=(input_item_id) (ITEM_ID_BUTTON1+button); -+ input_device_item_add(devinfo->device, defname, &devinfo->lightgun.buttons[button], itemid, generic_button_get_state); -+ } -+ break; -+ case ValuatorClass: -+ v = (XValuatorInfoPtr) any; -+ a = (XAxisInfoPtr) ((char *) v + sizeof (XValuatorInfo)); -+ for (j=0; j<v->num_axes; j++, a++) { -+ if (j==0) { -+ devinfo->lightgun.maxx=a->max_value; -+ devinfo->lightgun.minx=a->min_value; -+ } -+ if (j==1) { -+ devinfo->lightgun.maxy=a->max_value; -+ devinfo->lightgun.miny=a->min_value; -+ } -+ } -+ break; -+ } -+ any = (XAnyClassPtr) ((char *) any + any->length); -+ } -+ } -+ -+ -+ sprintf(defname, "X %s", devinfo->name); -+ input_device_item_add(devinfo->device, defname, &devinfo->lightgun.lX, ITEM_ID_XAXIS, generic_axis_get_state); -+ sprintf(defname, "Y %s", devinfo->name); -+ input_device_item_add(devinfo->device, defname, &devinfo->lightgun.lY, ITEM_ID_YAXIS, generic_axis_get_state); -+ -+ -+ devinfo->lightgun.deviceid=info->id; -+ if (!info) { -+ fprintf(stderr, "Can't find device %s!\n", lightgun_map.map[index].name); -+ } else { -+ fprintf(stderr, "Device %i: Registered %i events.\n",(int)info->id, register_events(XDisplay, info, lightgun_map.map[index].name, 0)); -+ } -+ } -+ } -+ mame_printf_verbose("Lightgun: End initialization\n"); -+} -+ -+device_info *get_lightgun_info_for_deviceid(XID deviceid) { -+ device_info *devinfo; -+ int index; -+ //Find lightgun according to device id -+ for (index=0; ; index++) { -+ devinfo = generic_device_find_index(lightgun_list, index); -+ if (devinfo==NULL) break; -+ if (devinfo->lightgun.deviceid==deviceid) break; -+ } -+ return devinfo; -+} -+ -+int normalize_absolute_axis(int raw, int rawmin, int rawmax) -+{ -+ int center = (rawmax + rawmin) / 2; -+ -+ // make sure we have valid data -+ if (rawmin >= rawmax) -+ return raw; -+ -+ // above center -+ if (raw >= center) -+ { -+ int result = (long)(raw - center) * (long)INPUT_ABSOLUTE_MAX / (long)(rawmax - center); -+ return MIN(result, INPUT_ABSOLUTE_MAX); -+ } -+ -+ // below center -+ else -+ { -+ int result = -((long)(center - raw) * (long)-INPUT_ABSOLUTE_MIN / (long)(center - rawmin)); -+ return MAX(result, INPUT_ABSOLUTE_MIN); -+ } -+} -+ -
- //============================================================
- // sdlinput_register_joysticks
-@@ -1115,6 +1385,9 @@ void sdlinput_init(running_machine *mach - // register the mice
- sdlinput_register_mice(machine);
-
-+ // register the lightguns -+ sdlinput_register_lightguns(machine); -+ - if (machine->debug_flags & DEBUG_FLAG_OSD_ENABLED)
- {
- mame_printf_warning("Debug Build: Disabling input grab for -debug\n");
-@@ -1131,6 +1404,7 @@ void sdlinput_init(running_machine *mach - device_list_reset_devices(keyboard_list);
- device_list_reset_devices(mouse_list);
- device_list_reset_devices(joystick_list);
-+ device_list_reset_devices(lightgun_list); -
- }
-
-@@ -1248,6 +1522,7 @@ void sdlinput_poll(running_machine *mach - device_info *devinfo;
- SDL_Event event;
- int index;
-+ XEvent xevent; -
- // only for SDLMAME_EVENTS_IN_WORKER_THREAD
- SDL_Event loc_event_buf[MAX_BUF_EVENTS];
-@@ -1263,6 +1538,21 @@ void sdlinput_poll(running_machine *mach - devinfo->mouse.lY = 0;
- }
-
-+ //Get XInput events -+ while (XPending(XDisplay)!=0) { -+ XNextEvent(XDisplay, &xevent); -+ if (xevent.type==motion_type) { -+ XDeviceMotionEvent *motion = (XDeviceMotionEvent *) &xevent; -+ devinfo=get_lightgun_info_for_deviceid(motion->deviceid); -+ devinfo->lightgun.lX=normalize_absolute_axis(motion->axis_data[0], devinfo->lightgun.minx, devinfo->lightgun.maxx); -+ devinfo->lightgun.lY=normalize_absolute_axis(motion->axis_data[1], devinfo->lightgun.miny, devinfo->lightgun.maxy); -+ } else if (xevent.type==button_press_type || xevent.type==button_release_type) { -+ XDeviceButtonEvent *button = (XDeviceButtonEvent *) &xevent; -+ devinfo=get_lightgun_info_for_deviceid(button->deviceid); -+ devinfo->lightgun.buttons[button->button]=(xevent.type==button_press_type)?0x80:0; -+ } -+ } -+ - if (SDLMAME_EVENTS_IN_WORKER_THREAD)
- {
- osd_lock_acquire(input_lock);
-diff -BNburp mame-org/src/osd/sdl/osdsdl.h mame-wiimote/src/osd/sdl/osdsdl.h ---- mame-org/src/osd/sdl/osdsdl.h 2010-02-12 14:42:32.000000000 +0100 -+++ mame-wiimote/src/osd/sdl/osdsdl.h 2010-05-07 08:53:34.000000000 +0200 -@@ -130,3 +130,4 @@ void sdlaudio_init(running_machine *mach - extern int sdl_num_processors;
-
- #endif
-+#define SDLOPTION_LIGHTGUNINDEX "lightgun_index" -diff -BNburp mame-org/src/osd/sdl/sdlmain.c mame-wiimote/src/osd/sdl/sdlmain.c ---- mame-org/src/osd/sdl/sdlmain.c 2010-02-13 12:19:16.000000000 +0100 -+++ mame-wiimote/src/osd/sdl/sdlmain.c 2010-05-07 08:54:03.000000000 +0200 -@@ -190,6 +190,17 @@ static const options_entry mame_sdl_opti - { SDLOPTION_JOYINDEX "8", SDLOPTVAL_AUTO, 0, "name of joystick mapped to joystick #8" },
- { SDLOPTION_SIXAXIS, "0", OPTION_BOOLEAN, "Use special handling for PS3 Sixaxis controllers" },
-
-+ { NULL, NULL, OPTION_HEADER, "SDL LIGHTGUN MAPPING" }, -+ { SDLOPTION_LIGHTGUNINDEX "1", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #1" }, -+ { SDLOPTION_LIGHTGUNINDEX "2", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #2" }, -+ { SDLOPTION_LIGHTGUNINDEX "3", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #3" }, -+ { SDLOPTION_LIGHTGUNINDEX "4", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #4" }, -+ { SDLOPTION_LIGHTGUNINDEX "5", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #5" }, -+ { SDLOPTION_LIGHTGUNINDEX "6", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #6" }, -+ { SDLOPTION_LIGHTGUNINDEX "7", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #7" }, -+ { SDLOPTION_LIGHTGUNINDEX "8", SDLOPTVAL_AUTO, 0, "name of lightgun mapped to lightgun #8" }, -+ -+ - #if (SDL_VERSION_ATLEAST(1,3,0))
- { NULL, NULL, OPTION_HEADER, "SDL MOUSE MAPPING" },
- { SDLOPTION_MOUSEINDEX "1", SDLOPTVAL_AUTO, 0, "name of mouse mapped to mouse #1" },
-diff -BNburp mame-org/src/osd/sdl/window.c mame-wiimote/src/osd/sdl/window.c ---- mame-org/src/osd/sdl/window.c 2010-02-12 07:40:12.000000000 +0100 -+++ mame-wiimote/src/osd/sdl/window.c 2010-05-07 08:54:54.000000000 +0200 -@@ -659,8 +659,17 @@ static void sdlwindow_update_cursor_stat - }
-
- #else
-+ //Hack for wii-lightguns: they stop working with a grabbed mouse; even a ShowCursor(SDL_DISABLE) already -+ //does this. To make the cursor disappear, we'll just set an empty cursor image. -+ unsigned char data[]={0,0,0,0,0,0,0,0}; -+ SDL_Cursor *c; -+ c=SDL_CreateCursor(data, data, 8, 8, 0, 0); -+ SDL_SetCursor(c); -+ -+ - // do not do mouse capture if the debugger's enabled to avoid
- // the possibility of losing control
-+/* - if (!(machine->debug_flags & DEBUG_FLAG_OSD_ENABLED))
- {
- if ( window->fullscreen || sdlinput_should_hide_mouse(machine) )
-@@ -680,6 +689,7 @@ static void sdlwindow_update_cursor_stat - }
- }
- }
-+*/ - #endif
- }
-
diff --git a/abs/extra/sdlmame/sdlmame.install b/abs/extra/sdlmame/sdlmame.install index 6103018..0d3fab8 100644 --- a/abs/extra/sdlmame/sdlmame.install +++ b/abs/extra/sdlmame/sdlmame.install @@ -1,29 +1,8 @@ -# Message displayed for a fresh install. post_install() -{ - echo "" - echo "***************************************************************" +{ echo " SDLMAME and the additional MAME utilities have been installed" - echo " in /usr/share/sdlmame However, SDLMAME can be run by" + echo " in /usr/share/sdlmame However, SDLMAME can be run by" echo " typing sdlmame and it's options. Try running SDLMAME with" echo " these options:" echo " sdlmame <rom> -nowindow -noswitchres" - echo "***************************************************************" - echo "" -} - -# Message for an update. -post_upgrade() -{ - echo "" - echo "***************************************************************" - echo " SDLMAME has been updated. If you are upgrading directly from" - echo " 0.117 or earlier, you must delete all .cfg files and" - echo " re-configure your controllers. You should also run" - echo " 'SDLMAME --newini' to force the script to create a new ini" - echo " file with default settings at ~/.mame/sdlmame.ini" - echo " since there may be new ini options." - echo "***************************************************************" - echo "" } - diff --git a/abs/extra/sdlmame/sdlmame.sh b/abs/extra/sdlmame/sdlmame.sh index 38b4870..336f716 100644 --- a/abs/extra/sdlmame/sdlmame.sh +++ b/abs/extra/sdlmame/sdlmame.sh @@ -4,13 +4,13 @@ home=('$HOME') if [ "$1" != "" ] && [ "$1" = "--newini" ]; then - echo "Rebuilding the ini file at $HOME/.mame/sdlmame.ini" + echo "Rebuilding the ini file at $HOME/.mame/mame.ini" echo "Modify this file for permanent changes to your SDLMAME" echo "options and paths before running SDLMAME again." cd $HOME/.mame - if [ -e sdlmame.ini ]; then - echo "Your old ini file has been renamed to sdlmameini.bak" - mv sdlmame.ini sdlmameini.bak + if [ -e mame.ini ]; then + echo "Your old ini file has been renamed to mameini.bak" + mv mame.ini mameini.bak fi /usr/share/sdlmame/sdlmame \ -artpath "$home/.mame/artwork;artwork" \ @@ -30,7 +30,7 @@ if [ "$1" != "" ] && [ "$1" = "--newini" ]; then -createconfig elif [ ! -e $HOME/.mame ]; then echo "Running SDLMAME for the first time..." - echo "Creating an ini file for SDLMAME at $HOME/.mame/sdlmame.ini" + echo "Creating an ini file for SDLMAME at $HOME/.mame/mame.ini" echo "Modify this file for permanent changes to your SDLMAME" echo "options and paths before running SDLMAME again." mkdir $HOME/.mame |
