Changes the accelerometer interface to better fit the Android and iPhone APIs

git-svn-id: trunk@34476 -
This commit is contained in:
sekelsenmat 2011-12-28 19:51:44 +00:00
parent c6111bd52c
commit 58dd4a7960
4 changed files with 7 additions and 7 deletions

View File

@ -527,7 +527,7 @@ begin
end;
procedure TWidgetSet.LazDeviceAPIs_UpdateAccelerometerData();
procedure TWidgetSet.LazDeviceAPIs_StartReadingAccelerometerData();
begin
end;

View File

@ -360,9 +360,9 @@ begin
Widgetset.LazDeviceAPIs_SendMessage(AMsg);
end;
procedure LazDeviceAPIs_UpdateAccelerometerData();
procedure LazDeviceAPIs_StartReadingAccelerometerData();
begin
Widgetset.LazDeviceAPIs_UpdateAccelerometerData();
Widgetset.LazDeviceAPIs_StartReadingAccelerometerData();
end;
function MoveWindowOrgEx(dc: hdc; dX,dY: Integer): boolean;

View File

@ -95,7 +95,7 @@ function IsDesignerDC(WindowHandle: HWND; DC: HDC): Boolean; {$IFDEF IF_BASE_MEM
procedure LazDeviceAPIs_RequestPositionInfo(AMethod: TLazPositionMethod); {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
procedure LazDeviceAPIs_SendMessage(AMsg: TLazDeviceMessage); {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
procedure LazDeviceAPIs_UpdateAccelerometerData(); {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
procedure LazDeviceAPIs_StartReadingAccelerometerData(); {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
function MoveWindowOrgEx(dc : hdc; dX,dY : Integer): boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}

View File

@ -41,7 +41,7 @@ type
public
// These fields store the last data read, to get fresh data use UpdateAccelerometerData;
xaxis, yaxis, zaxis: Double; // in m/s^2
procedure UpdateAccelerometerData();
procedure StartReadingAccelerometerData();
end;
// TLazMessaging
@ -95,9 +95,9 @@ implementation
{ TLazAccelerometer }
procedure TLazAccelerometer.UpdateAccelerometerData;
procedure TLazAccelerometer.StartReadingAccelerometerData;
begin
LCLIntf.LazDeviceAPIs_UpdateAccelerometerData();
LCLIntf.LazDeviceAPIs_StartReadingAccelerometerData();
end;
{ TLazPositionInfo }