mirror of
https://github.com/glfw/glfw
synced 2026-09-26 16:18:21 +03:00
Reset gamepad mapping before parsing
This commit is contained in:
parent
92dcf4ce74
commit
44d5302c8a
3 changed files with 4 additions and 1 deletions
|
|
@ -274,6 +274,7 @@ video tutorials.
|
|||
- Elviss Strazdins
|
||||
- Paul Sultana
|
||||
- Nathan Sweet
|
||||
- Ruben Sørensen
|
||||
- TTK-Bandit
|
||||
- Nuno Teixeira
|
||||
- Jared Tiala
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ information on what to include when reporting a bug.
|
|||
|
||||
## Changelog since 3.5
|
||||
|
||||
None.
|
||||
- Bugfix: Fixed stale gamepad mapping data when parsing mappings
|
||||
|
||||
|
||||
## Contact
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@ static _GLFWmapping* findValidMapping(const _GLFWjoystick* js)
|
|||
//
|
||||
static GLFWbool parseMapping(_GLFWmapping* mapping, const char* string)
|
||||
{
|
||||
memset(mapping, 0, sizeof(*mapping));
|
||||
|
||||
const char* c = string;
|
||||
size_t i, length;
|
||||
struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue