mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
mobile: Exclude non-mobile environments to build
This commit is contained in:
parent
95d3561a3a
commit
c6cc298e0d
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build android ios
|
||||
|
||||
package mobile
|
||||
|
||||
import (
|
||||
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build android ios
|
||||
|
||||
// Package ebitenmobileview offers functions for OpenGL/Metal view of mobiles.
|
||||
//
|
||||
// The functions are not intended for public usages.
|
||||
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build android ios
|
||||
|
||||
package ebitenmobileview
|
||||
|
||||
import (
|
||||
|
@ -1,28 +0,0 @@
|
||||
// Copyright 2019 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.
|
||||
|
||||
// +build !android
|
||||
// +build !ios
|
||||
|
||||
package ebitenmobileview
|
||||
|
||||
func update() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func UpdateTouchesOnAndroid(action int, id int, x, y int) {
|
||||
}
|
||||
|
||||
func UpdateTouchesOnIOS(phase int, ptr int64, x, y int) {
|
||||
}
|
@ -12,6 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// +build android ios
|
||||
|
||||
// Package mobile provides functions for mobile platforms (Android and iOS).
|
||||
//
|
||||
// This package is used when you use `ebitenmobile bind`.
|
||||
|
Loading…
Reference in New Issue
Block a user