mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
input: Add comments (#287)
This commit is contained in:
parent
49fb2635ec
commit
7dfbb7a4c0
4
input.go
4
input.go
@ -76,6 +76,10 @@ func GamepadButtonNum(id int) int {
|
|||||||
//
|
//
|
||||||
// This function is concurrent-safe.
|
// This function is concurrent-safe.
|
||||||
//
|
//
|
||||||
|
// The key states vary depending on environments.
|
||||||
|
// There can be differences even between Chrome and Firefox.
|
||||||
|
// Don't assume that states of a keys are always same when same buttons are pressed.
|
||||||
|
//
|
||||||
// NOTE: Gamepad API is available only on desktops, Chrome and Firefox.
|
// NOTE: Gamepad API is available only on desktops, Chrome and Firefox.
|
||||||
// To use this API, browsers might require rebooting the browser.
|
// To use this API, browsers might require rebooting the browser.
|
||||||
func IsGamepadButtonPressed(id int, button GamepadButton) bool {
|
func IsGamepadButtonPressed(id int, button GamepadButton) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user