getRelativeMousePosition static method
Implementation
static math.Point<double> getRelativeMousePosition() {
var xPointer = ffi.calloc<Int32>();
var yPointer = ffi.calloc<Int32>();
// 112
sdlGetRelativeMouseState(xPointer, yPointer);
var result = math.Point<double>(
xPointer.value.toDouble(), yPointer.value.toDouble());
ffi.calloc.free(xPointer);
ffi.calloc.free(yPointer);
return result;
}