mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 21:18:01 +02:00
Changes the accelerometer interface to better fit the Android and iPhone APIs
git-svn-id: trunk@34476 -
This commit is contained in:
parent
c6111bd52c
commit
58dd4a7960
@ -527,7 +527,7 @@ begin
|
||||
|
||||
end;
|
||||
|
||||
procedure TWidgetSet.LazDeviceAPIs_UpdateAccelerometerData();
|
||||
procedure TWidgetSet.LazDeviceAPIs_StartReadingAccelerometerData();
|
||||
begin
|
||||
|
||||
end;
|
||||
|
@ -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;
|
||||
|
@ -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}
|
||||
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user