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