Home › Forums › Feature Requests › Voice control + pointer button teleport › Reply To: Voice control + pointer button teleport
16/06/2014 at 09:25 #1182
Robert [Tobii]
Participant
Hi James,
You are right, the Direct Click (activation) command is exposed via the API and it is important that it can be triggered programmatically. Luckily, there is a way to do this without sending key presses by using “action commands”.
In the ActivatibleButtons project in the C/C++ sample solution you can see it in action:
void EyeXHost::TriggerActivation()
{
TX_HANDLE command(TX_EMPTY_HANDLE);
txCreateActionCommand(_context, &command, TX_ACTIONTYPE_ACTIVATE);
txExecuteCommandAsync(command, NULL, NULL);
txReleaseObject(&command);
}
There are many other action commands you can send as well, check out the TX_ACTIONTYPE enum.