mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
0dbe5b37de
Updates #744
52 lines
2.1 KiB
Go
52 lines
2.1 KiB
Go
// Copyright 2021 The Ebiten Authors
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
// Package nintendoswitch provides utility APIs for Nintendo Switch.
|
|
package nintendoswitch
|
|
|
|
import (
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
)
|
|
|
|
const (
|
|
GamepadButtonA = ebiten.GamepadButton0
|
|
GamepadButtonB = ebiten.GamepadButton1
|
|
GamepadButtonX = ebiten.GamepadButton2
|
|
GamepadButtonY = ebiten.GamepadButton3
|
|
GamepadButtonStickL = ebiten.GamepadButton4
|
|
GamepadButtonStickR = ebiten.GamepadButton5
|
|
GamepadButtonL = ebiten.GamepadButton6
|
|
GamepadButtonR = ebiten.GamepadButton7
|
|
GamepadButtonZL = ebiten.GamepadButton8
|
|
GamepadButtonZR = ebiten.GamepadButton9
|
|
GamepadButtonPlus = ebiten.GamepadButton10
|
|
GamepadButtonMinus = ebiten.GamepadButton11
|
|
GamepadButtonLeft = ebiten.GamepadButton12
|
|
GamepadButtonUp = ebiten.GamepadButton13
|
|
GamepadButtonRight = ebiten.GamepadButton14
|
|
GamepadButtonDown = ebiten.GamepadButton15
|
|
GamepadButtonStickLLeft = ebiten.GamepadButton16
|
|
GamepadButtonStickLUp = ebiten.GamepadButton17
|
|
GamepadButtonStickLRight = ebiten.GamepadButton18
|
|
GamepadButtonStickLDown = ebiten.GamepadButton19
|
|
GamepadButtonStickRLeft = ebiten.GamepadButton20
|
|
GamepadButtonStickRUp = ebiten.GamepadButton21
|
|
GamepadButtonStickRRight = ebiten.GamepadButton22
|
|
GamepadButtonStickRDown = ebiten.GamepadButton23
|
|
GamepadButtonLeftSL = ebiten.GamepadButton24
|
|
GamepadButtonLeftSR = ebiten.GamepadButton25
|
|
GamepadButtonRightSL = ebiten.GamepadButton26
|
|
GamepadButtonRightSR = ebiten.GamepadButton27
|
|
)
|