Skip to content

Commit

Permalink
Re-disable LED player # support on devices until we properly handle e…
Browse files Browse the repository at this point in the history
…num values (186acd5)

Extend deviceHandler to accurately return player #
  • Loading branch information
clobber committed Mar 29, 2013
1 parent be649ee commit 8053aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenEmu/OEDeviceManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ - (OEDeviceHandler *)OE_addDeviceHandlerForDevice:(IOHIDDeviceRef)aDevice
- (void)OE_addDeviceHandler:(OEDeviceHandler *)handler
{
NSUInteger idx = [_deviceHandlers indexOfObject:[NSNull null]];
NSUInteger padNumber = (idx == NSNotFound ? [_deviceHandlers count] : idx) + 1;
[handler setDeviceNumber:padNumber];
//NSUInteger padNumber = (idx == NSNotFound ? [_deviceHandlers count] : idx) + 1;
//[handler setDeviceNumber:padNumber];

[self willChangeValueForKey:@"deviceHandlers"];

Expand Down

0 comments on commit 8053aa3

Please sign in to comment.