LNXSDK/Kha/Sources/kha/input/Sensor.hx
2025-01-22 16:18:30 +01:00

18 lines
357 B
Haxe

package kha.input;
#if (cpp || hl)
extern class Sensor {
public static function get(type: SensorType): Sensor;
public function notify(listener: Float->Float->Float->Void): Void;
}
#else
class Sensor {
public static function get(type: SensorType): Sensor {
return null;
}
public function notify(listener: Float->Float->Float->Void): Void {}
}
#end