input: Add comments (#287)

This commit is contained in:
Hajime Hoshi 2016-10-29 18:17:25 +09:00
parent 49fb2635ec
commit 7dfbb7a4c0

View File

@ -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 {