mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
ebiten: fix a wrong comment about IsKeyPressed
This commit is contained in:
parent
336ed49bdc
commit
897ecdd5e6
6
input.go
6
input.go
@ -26,9 +26,6 @@ import (
|
|||||||
// AppendInputChars represents the environment's locale-dependent translation of keyboard
|
// AppendInputChars represents the environment's locale-dependent translation of keyboard
|
||||||
// input to Unicode characters.
|
// 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.
|
// AppendInputChars is concurrent-safe.
|
||||||
//
|
//
|
||||||
// On Android (ebitenmobile), EbitenView must be focusable to enable to handle keyboard keys.
|
// 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,
|
// If you want to know whether the key started being pressed in the current frame,
|
||||||
// use inpututil.IsKeyJustPressed
|
// 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:
|
// Known issue: On Edge browser, some keys don't work well:
|
||||||
//
|
//
|
||||||
// - KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual.
|
// - KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual.
|
||||||
|
Loading…
Reference in New Issue
Block a user