Search
lxdream.org :: lxdream/src/maple/maple.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/maple.c
changeset 608:4f588e52bce0
prev561:533f6b478071
next633:bbfc1a38ddb5
author nkeynes
date Mon Jan 28 02:38:09 2008 +0000 (16 years ago)
permissions -rw-r--r--
last change Bug #49: Joystick support work in progress
file annotate diff log raw
1.1 --- a/src/maple/maple.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/maple/maple.c Mon Jan 28 02:38:09 2008 +0000
1.3 @@ -29,7 +29,8 @@
1.4 struct dreamcast_module maple_module = { "Maple", maple_init, NULL, NULL, NULL,
1.5 NULL, NULL, NULL };
1.6
1.7 -struct maple_device_class *maple_device_classes[] = { &controller_class, NULL };
1.8 +struct maple_device_class *maple_device_classes[] = {
1.9 + &controller_class, &keyboard_class, &mouse_class, NULL };
1.10
1.11 void maple_init( void )
1.12 {
1.13 @@ -322,9 +323,16 @@
1.14 for( j=0; j<6; j++ ) {
1.15 if( maple_devices[i][j] != NULL ) {
1.16 maple_device_t dev = maple_devices[i][j];
1.17 + if( dev->detach != NULL )
1.18 + dev->detach(dev);
1.19 if( dev->attach != NULL )
1.20 dev->attach(dev);
1.21 }
1.22 }
1.23 }
1.24 }
1.25 +
1.26 +void maple_default_destroy( maple_device_t mdev )
1.27 +{
1.28 + free(mdev);
1.29 +}
.