Home Forums Feature Requests Voice control + pointer button teleport Reply To: Voice control + pointer button teleport

Robert [Tobii]

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()
	txCreateActionCommand(_context, &command, TX_ACTIONTYPE_ACTIVATE);
	txExecuteCommandAsync(command, NULL, NULL);

There are many other action commands you can send as well, check out the TX_ACTIONTYPE enum.