mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 03:02:49 +01:00
input: Fix comments
This commit is contained in:
parent
2f4ca72dbd
commit
0544476419
@ -143,10 +143,10 @@ func init() {
|
||||
0x91: "ScrollLock",
|
||||
0x5d: "Menu",
|
||||
|
||||
// NOTE: On Edge, this key does not work. PrintScreen works only on keyup event, and PrintScreen doesn't work on Edge well.
|
||||
//0x2C: "PrintScreen",
|
||||
// On Edge, this key does not work. PrintScreen works only on keyup event.
|
||||
// 0x2C: "PrintScreen",
|
||||
|
||||
// TODO: On Edge, it is impossible to tell KPEnter and Enter / KPEqual and Equal.
|
||||
// On Edge, it is impossible to tell KPEnter and Enter / KPEqual and Equal.
|
||||
// 0x0d: "KPEnter",
|
||||
// 0x0c: "KPEqual",
|
||||
}
|
||||
|
6
input.go
6
input.go
@ -35,8 +35,10 @@ func InputChars() []rune {
|
||||
|
||||
// IsKeyPressed returns a boolean indicating whether key is pressed.
|
||||
//
|
||||
// Known issue: On Edge browser, KeyKPEnter and KeyKPEqual don't work well.
|
||||
// These keys are recognized as KeyEnter and KeyEqual.
|
||||
// Known issue: On Edge browser, some keys don't work well:
|
||||
//
|
||||
// - KeyKPEnter and KeyKPEqual are recognized as KeyEnter and KeyEqual.
|
||||
// - KeyPrintScreen is only treated at keyup event.
|
||||
//
|
||||
// This function is concurrent-safe.
|
||||
func IsKeyPressed(key Key) bool {
|
||||
|
Loading…
Reference in New Issue
Block a user