Skip to content

Commit

Permalink
I'm giving up on the wiimote
Browse files Browse the repository at this point in the history
That seems like it should be a linux userspace driver issue not a libretro thing.
  • Loading branch information
oshaboy committed Jan 19, 2025
1 parent 23d7b75 commit a65e2fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion configuration.c
Original file line number Diff line number Diff line change
Expand Up @@ -6467,7 +6467,6 @@ void input_config_set_autoconfig_binds(unsigned port, void *data)

get_config_name_for_sensor(str, sizeof(str), i);
bind=input_config_parse_sensor (i,str, config);
RARCH_DBG("binding %d->%d\n",i,bind);
config_get_ptr()->uints.input_sensor_ids[port][i]=bind;
}
}
Expand Down
9 changes: 2 additions & 7 deletions input/drivers/udev_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,7 @@ typedef struct udev_input_device
udev_input_touch_t _touch; /* State tracking for touch-type devices */
#endif
} _mouse;
struct {
udev_input_sensor_t _sensor;
struct udev_input_device * _wii_motion_plus;
} _sensor;
udev_input_sensor_t _sensor;
} _u;
enum udev_input_dev_type type; /* Type of this device */
char devnode[NAME_MAX_LENGTH]; /* Device node path */
Expand All @@ -600,8 +597,7 @@ typedef struct udev_input_device

#define mouse_state _u._mouse._mouse
#define touch_state _u._mouse._touch
#define sensor_state _u._sensor._sensor
#define wii_motion_plus_state _u._sensor._wii_motion_plus
#define sensor_state _u._sensor

typedef void (*device_handle_cb)(void *data,
const struct input_event *event, udev_input_device_t *dev);
Expand Down Expand Up @@ -3227,7 +3223,6 @@ static void udev_init_sensor_dev(udev_input_device_t *dev)
int ret,i;
struct input_absinfo abs_info;

dev->wii_motion_plus_state=NULL;
RARCH_DBG("[udev] Initializing sensor device \"%s\"\n", dev->ident);
for (i=ABS_X ; i<=ABS_RZ; i++){
ret = ioctl(dev->fd, EVIOCGABS(i), &abs_info);
Expand Down

0 comments on commit a65e2fc

Please sign in to comment.