ebiten: add missing backward compatibility Add key (#2024)

Closes #2025
This commit is contained in:
Kacper Drobny 2022-03-23 18:41:24 +01:00 committed by GitHub
parent 3074dca670
commit de8c02a00f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -375,6 +375,7 @@ func init() {
"KP7": "Numpad7",
"KP8": "Numpad8",
"KP9": "Numpad9",
"KPAdd": "NumpadAdd",
"KPDecimal": "NumpadDecimal",
"KPDivide": "NumpadDivide",
"KPMultiply": "NumpadMultiply",

View File

@ -165,6 +165,7 @@ const (
KeyKP7 Key = Key(ui.KeyNumpad7)
KeyKP8 Key = Key(ui.KeyNumpad8)
KeyKP9 Key = Key(ui.KeyNumpad9)
KeyKPAdd Key = Key(ui.KeyNumpadAdd)
KeyKPDecimal Key = Key(ui.KeyNumpadDecimal)
KeyKPDivide Key = Key(ui.KeyNumpadDivide)
KeyKPEnter Key = Key(ui.KeyNumpadEnter)