@@ -588,10 +588,7 @@ typedef struct udev_input_device
588
588
udev_input_touch_t _touch ; /* State tracking for touch-type devices */
589
589
#endif
590
590
} _mouse ;
591
- struct {
592
- udev_input_sensor_t _sensor ;
593
- struct udev_input_device * _wii_motion_plus ;
594
- } _sensor ;
591
+ udev_input_sensor_t _sensor ;
595
592
} _u ;
596
593
enum udev_input_dev_type type ; /* Type of this device */
597
594
char devnode [NAME_MAX_LENGTH ]; /* Device node path */
@@ -600,8 +597,7 @@ typedef struct udev_input_device
600
597
601
598
#define mouse_state _u._mouse._mouse
602
599
#define touch_state _u._mouse._touch
603
- #define sensor_state _u._sensor._sensor
604
- #define wii_motion_plus_state _u._sensor._wii_motion_plus
600
+ #define sensor_state _u._sensor
605
601
606
602
typedef void (* device_handle_cb )(void * data ,
607
603
const struct input_event * event , udev_input_device_t * dev );
@@ -3227,7 +3223,6 @@ static void udev_init_sensor_dev(udev_input_device_t *dev)
3227
3223
int ret ,i ;
3228
3224
struct input_absinfo abs_info ;
3229
3225
3230
- dev -> wii_motion_plus_state = NULL ;
3231
3226
RARCH_DBG ("[udev] Initializing sensor device \"%s\"\n" , dev -> ident );
3232
3227
for (i = ABS_X ; i <=ABS_RZ ; i ++ ){
3233
3228
ret = ioctl (dev -> fd , EVIOCGABS (i ), & abs_info );
0 commit comments