Skip to content

Commit

Permalink
Fix swift compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Oct 27, 2023
1 parent 855cc9d commit 582d5e1
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions appendix/GamePadViewer/src/View/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,25 @@ struct ContentView: View {
var body: some View {
VStack {
VStack(alignment: .leading) {
Text("counter: \(eventObserver.counter)")
Text("horizontal: \(rightStick.horizontal.lastDoubleValue)")
Text("vertical: \(rightStick.vertical.lastDoubleValue)")
Group {
Text("counter: \(eventObserver.counter)")
Text("horizontal: \(rightStick.horizontal.lastDoubleValue)")
Text("vertical: \(rightStick.vertical.lastDoubleValue)")
}
Divider()
Text("radian: \(rightStick.radian)")
Text("magnitude: \(rightStick.magnitude)")
Text("strokeAcceleration: \(rightStick.strokeAcceleration)")
Group {
Text("radian: \(rightStick.radian)")
Text("magnitude: \(rightStick.magnitude)")
Text("strokeAcceleration: \(rightStick.strokeAcceleration)")
}
Divider()
Text("radianDiff \(rightStick.radianDiff)")
Text("deltaHorizontal: \(rightStick.deltaHorizontal)")
Text("deltaVertical: \(rightStick.deltaVertical)")
Text("deltaRadian: \(rightStick.deltaRadian)")
Text("deltaMagnitude: \(rightStick.deltaMagnitude)")
Group {
Text("radianDiff \(rightStick.radianDiff)")
Text("deltaHorizontal: \(rightStick.deltaHorizontal)")
Text("deltaVertical: \(rightStick.deltaVertical)")
Text("deltaRadian: \(rightStick.deltaRadian)")
Text("deltaMagnitude: \(rightStick.deltaMagnitude)")
}
}
.frame(width: 400)

Expand Down

0 comments on commit 582d5e1

Please sign in to comment.