Skip to content

Commit

Permalink
sdl: fix SensorType constants (#524)
Browse files Browse the repository at this point in the history
This commit fixes the sdl.SensorType constants. Previously, they we're
all equal to -1.
  • Loading branch information
charlievieth authored and veeableful committed Jun 17, 2022
1 parent eaaee51 commit e309184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdl/sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@ const (
// Here are the additional Android sensors:
// https://developer.android.com/reference/android/hardware/SensorEvent.html#values
const (
SENSOR_INVALID SensorType = -1 // Returned for an invalid sensor
SENSOR_UNKNOWN // Unknown sensor type
SENSOR_ACCEL // Accelerometer
SENSOR_GYRO // Gyroscope
SENSOR_INVALID SensorType = C.SDL_SENSOR_INVALID // Returned for an invalid sensor
SENSOR_UNKNOWN SensorType = C.SDL_SENSOR_UNKNOWN // Unknown sensor type
SENSOR_ACCEL SensorType = C.SDL_SENSOR_ACCEL // Accelerometer
SENSOR_GYRO SensorType = C.SDL_SENSOR_GYRO // Gyroscope
)

type Sensor C.SDL_Sensor
Expand Down

0 comments on commit e309184

Please sign in to comment.