ebiten: fix a wrong comment about IsKeyPressed

This commit is contained in:
Hajime Hoshi 2021-12-19 23:48:19 +09:00
parent 336ed49bdc
commit 897ecdd5e6

View File

@ -26,9 +26,6 @@ import (
// AppendInputChars represents the environment's locale-dependent translation of keyboard
// input to Unicode characters.
//
// IsKeyPressed is based on a mapping of device (US keyboard) codes to input device keys.
// "Control" and modifier keys should be handled with IsKeyPressed.
//
// AppendInputChars is concurrent-safe.
//
// On Android (ebitenmobile), EbitenView must be focusable to enable to handle keyboard keys.
@ -50,6 +47,9 @@ func InputChars() []rune {
// If you want to know whether the key started being pressed in the current frame,
// use inpututil.IsKeyJustPressed
//
// IsKeyPressed is based on a mapping of device (US keyboard) codes to input device keys.
// "Control" and modifier keys should be handled with IsKeyPressed.
//
// Known issue: On Edge browser, some keys don't work well:
//
// - KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual.