mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-23 08:59:40 +00:00
v110
Corrections for IOKit joypad driver [Sintendo]
This commit is contained in:
parent
409dd371b9
commit
675662e739
@ -29,13 +29,13 @@ using namespace nall;
|
||||
|
||||
namespace Emulator {
|
||||
static const string Name = "bsnes";
|
||||
static const string Version = "109.5";
|
||||
static const string Version = "110";
|
||||
static const string Author = "byuu";
|
||||
static const string License = "GPLv3";
|
||||
static const string Website = "https://byuu.org";
|
||||
|
||||
//incremented only when serialization format changes
|
||||
static const string SerializerVersion = "109";
|
||||
static const string SerializerVersion = "110";
|
||||
|
||||
namespace Constants {
|
||||
namespace Colorburst {
|
||||
|
@ -145,7 +145,7 @@ struct InputJoypadIOKit {
|
||||
}
|
||||
}
|
||||
assign(jp.hid, HID::Joypad::GroupID::Hat, n * 2 + 0, x * 32767);
|
||||
assign(jp.hid, HID::Joypad::GroupID::Hat, n * 2 + 1, x * 32767);
|
||||
assign(jp.hid, HID::Joypad::GroupID::Hat, n * 2 + 1, y * 32767);
|
||||
}
|
||||
|
||||
for(uint n : range(jp.buttons.size())) {
|
||||
@ -247,7 +247,7 @@ private:
|
||||
if(!pageNumber) return nullptr;
|
||||
|
||||
CFNumberRef usageNumber = CFNumberCreate(kCFAllocatorDefault, kCFNumberIntType, &usage);
|
||||
if(!usageNumber) return nullptr;
|
||||
if(!usageNumber) return CFRelease(pageNumber), nullptr;
|
||||
|
||||
const void* keys[] = {CFSTR(kIOHIDDeviceUsagePageKey), CFSTR(kIOHIDDeviceUsageKey)};
|
||||
const void* values[] = {pageNumber, usageNumber};
|
||||
|
Loading…
Reference in New Issue
Block a user