mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
ui: Format comments
This commit is contained in:
parent
c17946bb82
commit
dcad3d21c9
9
input.go
9
input.go
@ -94,9 +94,9 @@ func IsMouseButtonPressed(mouseButton MouseButton) bool {
|
|||||||
|
|
||||||
// GamepadGUID returns a string with the uuid.
|
// GamepadGUID returns a string with the uuid.
|
||||||
//
|
//
|
||||||
// GamepadGUID is concurrent-safe.
|
|
||||||
//
|
|
||||||
// GamepadGUID always returns an empty string on browsers and mobiles.
|
// GamepadGUID always returns an empty string on browsers and mobiles.
|
||||||
|
//
|
||||||
|
// GamepadGUID is concurrent-safe.
|
||||||
func GamepadGUID(id int) string {
|
func GamepadGUID(id int) string {
|
||||||
return uiDriver().Input().GamepadGUID(id)
|
return uiDriver().Input().GamepadGUID(id)
|
||||||
}
|
}
|
||||||
@ -104,13 +104,14 @@ func GamepadGUID(id int) string {
|
|||||||
// GamepadName returns a string with the name.
|
// GamepadName returns a string with the name.
|
||||||
// This function may vary in how it returns descriptions for the same device across platforms
|
// This function may vary in how it returns descriptions for the same device across platforms
|
||||||
// for example the following drivers/platforms see a Xbox One controller as the following:
|
// for example the following drivers/platforms see a Xbox One controller as the following:
|
||||||
|
//
|
||||||
// - Windows: "Xbox Controller"
|
// - Windows: "Xbox Controller"
|
||||||
// - Chrome: "Xbox 360 Controller (XInput STANDARD GAMEPAD)"
|
// - Chrome: "Xbox 360 Controller (XInput STANDARD GAMEPAD)"
|
||||||
// - Firefox: "xinput"
|
// - Firefox: "xinput"
|
||||||
//
|
//
|
||||||
// GamepadName is concurrent-safe.
|
|
||||||
//
|
|
||||||
// GamepadName always returns an empty string on mobiles.
|
// GamepadName always returns an empty string on mobiles.
|
||||||
|
//
|
||||||
|
// GamepadName is concurrent-safe.
|
||||||
func GamepadName(id int) string {
|
func GamepadName(id int) string {
|
||||||
return uiDriver().Input().GamepadName(id)
|
return uiDriver().Input().GamepadName(id)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user