mirror of https://github.com/mgba-emu/mgba.git
GBA Input: Allow axes and buttons to be mapped to the same key
This commit is contained in:
parent
d0bc4d4f4e
commit
b6889d77f8
1
CHANGES
1
CHANGES
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue