mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-14 15:38:55 +02:00
fix?
This commit is contained in:
parent
c686e37b90
commit
81a92b4adb
26 changed files with 80 additions and 435 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
import SwiftUI
|
||||
import GameController
|
||||
import AppUI
|
||||
|
||||
import SwiftUIJoystick
|
||||
|
||||
struct ControllerView: View {
|
||||
|
|
@ -335,6 +335,18 @@ struct ABXYView: View {
|
|||
}
|
||||
}
|
||||
|
||||
class Haptics {
|
||||
static let shared = Haptics()
|
||||
private init() { }
|
||||
func play(_ feedbackStyle: UIImpactFeedbackGenerator.FeedbackStyle) {
|
||||
print("haptics")
|
||||
UIImpactFeedbackGenerator(style: feedbackStyle).impactOccurred()
|
||||
}
|
||||
func notify(_ feedbackType: UINotificationFeedbackGenerator.FeedbackType) {
|
||||
UINotificationFeedbackGenerator().notificationOccurred(feedbackType)
|
||||
}
|
||||
}
|
||||
|
||||
struct ButtonView: View {
|
||||
var button: VirtualControllerButtonType
|
||||
@StateObject private var viewModel: EmulationViewModel = EmulationViewModel(game: nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue