Tobii EyeX - Siv3D/Reference-JP GitHub Wiki

注視しているスクγƒͺーン座標を取得する

# include <Siv3D.hpp>

void Main()
{
	if (!TobiiEyeX::Start())
	{
		return;
	}

	EyeXState state;

	Vec2 pos(0, 0);

	while (System::Update())
	{
		if (TobiiEyeX::HasNewState())
		{
			TobiiEyeX::GetState(state);

			pos = state.clientGazePos;
		}

		Circle(pos, 20).draw();
	}
}
⚠️ **GitHub.com Fallback** ⚠️