mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
Unify 'deprecated' comment formats
This commit is contained in:
parent
431cd33839
commit
6bc22d4587
@ -488,7 +488,7 @@ const (
|
|||||||
KeyMax Key = KeyMeta
|
KeyMax Key = KeyMeta
|
||||||
|
|
||||||
// Keys for backward compatibility.
|
// Keys for backward compatibility.
|
||||||
// Deprecated: as of 2.1.0.
|
// Deprecated: as of v2.1.
|
||||||
{{range $old, $new := .OldEbitenKeyNameToDriverKeyName}}Key{{$old}} Key = Key(driver.Key{{$new}})
|
{{range $old, $new := .OldEbitenKeyNameToDriverKeyName}}Key{{$old}} Key = Key(driver.Key{{$new}})
|
||||||
{{end}}
|
{{end}}
|
||||||
)
|
)
|
||||||
|
6
input.go
6
input.go
@ -39,7 +39,7 @@ func AppendInputChars(runes []rune) []rune {
|
|||||||
|
|
||||||
// InputChars return "printable" runes read from the keyboard at the time update is called.
|
// InputChars return "printable" runes read from the keyboard at the time update is called.
|
||||||
//
|
//
|
||||||
// Deprecated: as of v2.2.0. Use AppendInputChars instead.
|
// Deprecated: as of v2.2. Use AppendInputChars instead.
|
||||||
func InputChars() []rune {
|
func InputChars() []rune {
|
||||||
return AppendInputChars(nil)
|
return AppendInputChars(nil)
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ func AppendGamepadIDs(gamepadIDs []GamepadID) []GamepadID {
|
|||||||
|
|
||||||
// GamepadIDs returns a slice indicating available gamepad IDs.
|
// GamepadIDs returns a slice indicating available gamepad IDs.
|
||||||
//
|
//
|
||||||
// Deprecated: as of v2.2.0. Use AppendGamepadIDs instead.
|
// Deprecated: as of v2.2. Use AppendGamepadIDs instead.
|
||||||
func GamepadIDs() []GamepadID {
|
func GamepadIDs() []GamepadID {
|
||||||
return AppendGamepadIDs(nil)
|
return AppendGamepadIDs(nil)
|
||||||
}
|
}
|
||||||
@ -221,7 +221,7 @@ func AppendTouchIDs(touches []TouchID) []TouchID {
|
|||||||
|
|
||||||
// TouchIDs returns the current touch states.
|
// TouchIDs returns the current touch states.
|
||||||
//
|
//
|
||||||
// Deperecated: as of v2.2.0. Use AppendTouchIDs instead.
|
// Deperecated: as of v2.2. Use AppendTouchIDs instead.
|
||||||
func TouchIDs() []TouchID {
|
func TouchIDs() []TouchID {
|
||||||
return AppendTouchIDs(nil)
|
return AppendTouchIDs(nil)
|
||||||
}
|
}
|
||||||
|
2
keys.go
2
keys.go
@ -141,7 +141,7 @@ const (
|
|||||||
KeyMax Key = KeyMeta
|
KeyMax Key = KeyMeta
|
||||||
|
|
||||||
// Keys for backward compatibility.
|
// Keys for backward compatibility.
|
||||||
// Deprecated: as of 2.1.0.
|
// Deprecated: as of v2.1.
|
||||||
Key0 Key = Key(driver.KeyDigit0)
|
Key0 Key = Key(driver.KeyDigit0)
|
||||||
Key1 Key = Key(driver.KeyDigit1)
|
Key1 Key = Key(driver.KeyDigit1)
|
||||||
Key2 Key = Key(driver.KeyDigit2)
|
Key2 Key = Key(driver.KeyDigit2)
|
||||||
|
Loading…
Reference in New Issue
Block a user