all repos — mgba @ b6889d77f838daf035e0618b30318113bbd859ea

mGBA Game Boy Advance Emulator

GBA Input: Allow axes and buttons to be mapped to the same key
Jeffrey Pfau jeffrey@endrift.com
Fri, 17 Jul 2015 18:22:01 -0700
commit

b6889d77f838daf035e0618b30318113bbd859ea

parent

d0bc4d4f4e8e4f28ffbc741a0ee35076a2d70b1c

2 files changed, 1 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -103,6 +103,7 @@ - All: Proper handling of Unicode file paths

- GBA Video: Slightly optimize mode 0 mosaic rendering - VFS: Add sync method to force syncing with backing - GBA: Savedata is now synced shortly after data finishes being written + - GBA Input: Allow axes and buttons to be mapped to the same key 0.2.1: (2015-05-13) Bugfixes:
M src/gba/input.csrc/gba/input.c

@@ -421,8 +421,6 @@

void GBAInputBindAxis(struct GBAInputMap* map, uint32_t type, int axis, const struct GBAAxis* description) { struct GBAInputMapImpl* impl = _guaranteeMap(map, type); struct GBAAxis* dup = malloc(sizeof(struct GBAAxis)); - GBAInputUnbindKey(map, type, description->lowDirection); - GBAInputUnbindKey(map, type, description->highDirection); *dup = *description; TableInsert(&impl->axes, axis, dup); }