Search
lxdream.org :: lxdream/src/maple/lightgun.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/lightgun.c
changeset 1034:7044e01148f0
prev1021:848db285a184
next1072:d82e04e6d497
author nkeynes
date Thu Jun 25 01:09:42 2009 +0000 (14 years ago)
permissions -rw-r--r--
last change Remove obsolete defaults
file annotate diff log raw
1.1 --- a/src/maple/lightgun.c Wed Jun 03 11:37:10 2009 +0000
1.2 +++ b/src/maple/lightgun.c Thu Jun 25 01:09:42 2009 +0000
1.3 @@ -72,14 +72,15 @@
1.4 struct lxdream_config_entry config[LIGHTGUN_CONFIG_ENTRIES+1];
1.5 } *lightgun_device_t;
1.6
1.7 -struct maple_device_class lightgun_class = { "Sega Lightgun", lightgun_new };
1.8 +struct maple_device_class lightgun_class = { "Sega Lightgun",
1.9 + MAPLE_TYPE_PRIMARY|MAPLE_GRAB_NO|MAPLE_SLOTS_2, lightgun_new };
1.10
1.11 static struct lightgun_device base_lightgun = {
1.12 - { MAPLE_DEVICE_TAG, &lightgun_class, MAPLE_GRAB_NO,
1.13 + { MAPLE_DEVICE_TAG, &lightgun_class,
1.14 LIGHTGUN_IDENT, LIGHTGUN_VERSION,
1.15 lightgun_get_config, lightgun_set_config_value,
1.16 lightgun_attach, lightgun_detach, lightgun_destroy,
1.17 - lightgun_clone, NULL, NULL, lightgun_get_cond, NULL, NULL, NULL,
1.18 + lightgun_clone, NULL, NULL, lightgun_get_cond, NULL, NULL, NULL, NULL,
1.19 lightgun_start_gun, lightgun_stop_gun},
1.20 {0x0000FFFF, 0x80808080}, 0, -1, -1,
1.21 {{ "dpad left", N_("Dpad left"), CONFIG_TYPE_KEY },
.