Input device and non-transitory computer-readable recording medium
An input device comprising: a processor that executes a process comprising: first detecting an eye-gaze position on a screen; comparing a current specified position and the eye-gaze position; and setting a cursor position to the specified position until a distance between the specified position and the eye-gaze position reaches a threshold or more.
1. An input device comprising:
a touch panel that displays a cursor; and
a processor that executes a process including:
detecting an eye-gaze position on the touch panel from a camera that captures a reflection of light on retina of a user who uses the touch panel;
acquiring information from a sensor for tilt information that measures acceleration of the input device; and
specifying a cursor position based on the eye-gaze position and the tilt information and displaying the cursor at a position on the touch panel corresponding to the specified cursor position;
wherein the specifying includes comparing a current cursor position and an eye-gaze position, and performing processing of setting the cursor position until a distance between the current cursor position and the eye-gaze position reaches a threshold or more;
wherein the position of the cursor is to be set depending on whether the eye-gaze position is present in an area centered at a position displayed on the touch panel;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and moving the position of the cursor to the eye-gaze position when the eye-gaze position is not included in the area;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and not moving the position of the cursor to the eye-gaze position when the eye-gaze position is in the area,
wherein, when a start button, that is displayed on the touch panel, is selected or when a magnitude of tilt of the input device reaches a threshold or more, the displaying includes starting the processing of moving the cursor according to the tilt information.
2. A non-transitory computer-readable recording medium having stored therein an input program that causes a processor of an input device, wherein the input device comprises a touch panel that displays a cursor, to execute a process comprising:
detecting an eye-gaze position on the touch panel from a camera that captures a reflection of light on retina of a user who uses the touch panel;
acquiring information from a sensor for tilt information that measures acceleration of the input device; and
specifying a cursor position based on the eye-gaze position and the tilt information and displaying the cursor at a position on the touch panel corresponding to the specified cursor position;
wherein the specifying includes comparing a current cursor position and an eye-gaze position, and performing processing of setting the cursor position until a distance between the current cursor position and the eye-gaze position reaches a threshold or more;
wherein the position of the cursor is to be set depending on whether the eye-gaze position is present in an area centered at a position displayed on the touch panel;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and moving the position of the cursor to the eye-gaze position when the eye-gaze position is not included in the area;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and not moving the position of the cursor to the eye-gaze position when the eye-gaze position is in the area,
wherein, when a start button, that is displayed on the touch panel, is selected or when a magnitude of tilt of the input device reaches a threshold or more, the displaying includes starting the processing of moving the cursor according to the tilt information.
3. An input method executing a process by an input device that includes a touch panel that displays a cursor, the process comprising:
detecting an eye-gaze position on the touch panel from a camera that captures a reflection of light on retina of a user who uses the touch panel;
acquiring information from a sensor for tilt information that measures acceleration of the input device; and
specifying a cursor position based on the eye-gaze position and the tilt information and displaying the cursor at a position on the touch panel corresponding to the specified cursor position;
wherein the specifying includes comparing a current cursor position and an eye-gaze position, and performing processing of setting the cursor position until a distance between the current cursor position and the eye-gaze position reaches a threshold or more;
wherein the position of the cursor is to be set depending on whether the eye-gaze position is present in an area centered at a position displayed on the touch panel;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and moving the position of the cursor to the eye-gaze position when the eye-gaze position is not included in the area;
when the eye-gaze position is included in the area, the displaying includes setting the position of the cursor, and not moving the position of the cursor to the eye-gaze position when the eye-gaze position is in the area,
wherein, when a start button, that is displayed on the touch panel, is selected or when a magnitude of tilt of the input device reaches a threshold or more, the displaying includes starting the processing of moving the cursor according to the tilt information.