TwclWiiRemoteClientConnection.HalWrite(PByte,Byte) Method
Implements a hardware-dependent code that writes data report to the connected Wii Remote controller.
protected function HalWrite(const Report: PByte; const Size: Byte): Integer; virtual; abstract;
Parameters
- Report
- Type: PByte
The pointer to the report data buffer.
- Size
- Type: Byte
The report data size.
Return Value
Type: Integer
If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
A derived class must override this method to implement a hardware-dependent code that sends data to the connected device. The method executes in the main thread and must be synchronous.
A derived implementation must always call this method in case
of the derived HalConnect
failed.