Keyboard.BehavMap - accessibilitysoftwarehub/OpenSourceWindowsGazeControl GitHub Wiki

General Information

Name: Keyboard Behaviour Map

Description: This is the behaviour map for the keyboard. It creates an outline on each button when it is looked at by the user then calls the correct method when the button has gained fixation.

Purpose: This method is the go between for the keyboard and the eye tracker. It tracks fixation and calls the correct method in the keyboard class when fixation is created.

Full Description: When the map catches the user is looking at a spot where there is a button on the keyboard form is will check its map and find start reacting. A timer will start and after the buttonClickDelay has been reached by the timer it will call the buttons and method'click' the button.

Note:

Method Descriptions

connectBehaveMap This will connect the behaviour map to the eye tracker and set up the map of reactive buttons.

setupForm2Map Connects all the buttons on the form to the form2map and makes them all gaze reactive. The first line controls what happens to the button when it has gained fixation after the delay. The second line changes the background panel to blue when the button has your gaze on it. These lines are repeated for all the buttons and panels on the keyboard.

OnGazeChangeBTColour Changes the colour of the background panel for the buttons on the keyboard.

OnGazeChangeBTColour2 Changes the background colour for the gaze toolbar overlay.

button_Click Checks if the button has your gaze then performs the click as if the button has been pressed by a mouse.