From 7dfbb7a4c025a819e7dc97e72f6193390395a005 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 29 Oct 2016 18:17:25 +0900 Subject: [PATCH] input: Add comments (#287) --- input.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/input.go b/input.go index 2e64e23a8..66d151ef0 100644 --- a/input.go +++ b/input.go @@ -76,6 +76,10 @@ func GamepadButtonNum(id int) int { // // 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. // To use this API, browsers might require rebooting the browser. func IsGamepadButtonPressed(id int, button GamepadButton) bool {