GBA Input: Allow axes and buttons to be mapped to the same key

This commit is contained in:
Jeffrey Pfau 2015-07-17 18:22:01 -07:00
parent d0bc4d4f4e
commit b6889d77f8
2 changed files with 1 additions and 2 deletions

View File

@ -103,6 +103,7 @@ Misc:
- 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:

View File

@ -421,8 +421,6 @@ int GBAInputClearAxis(const struct GBAInputMap* map, uint32_t type, int axis, in
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);
}