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
2 files changed,
1 insertions(+),
2 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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); }