anyKode Marilou
ContentsIndexHome
PreviousUpNext
RobotPHX::QueryDeviceTouchArea

QueryDeviceTouchArea searches and return a TouchArea device from the list of the PHX's devices.

C++
DeviceTouchArea * QueryDeviceTouchArea(const xkode::lib::String& Name);
Parameters 
Description 
const xkode::lib::String& Name 
[in] Relative name of the device:
Ex: "box/toucharea

Pointer to the instance of the required device. The function returns NULL if the device were not found.

//MODA C++ native sample code

//...
ModaCPP::DeviceTouchArea *pDevice=pRobot->QueryDeviceTouchArea("box1/toucharea");
if(pDevice) pDevice->GetAreaState(State);
Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!