# US 2012/0075187 A1 · Method for simulating a mouse device with a keyboard and input system using the same

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2012/0075187 A1
- Document ID: US20120075187A1
- Status: Published application
- Kind: A1
- Application number: 13/233,035
- Filed: 2011-09-15
- Published: 2012-03-29
- Earliest claimed: 2010-09-24
- Assignees: Wistron Corporation
- Inventors: Yuan-Chan Lee
- Web page: https://patentgrep.com/patent/US20120075187A1

## CPC

- G06F 3/04892: Arrangements for controlling cursor position based on codes indicative of cursor displacements from one discrete location to another, e.g. using cursor control keys associated to different directions or using the tab key (arrangements for controlling cursor position based on coordinate signals G06F3/038)
- G06F 3/023: Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F 3/038: Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for simulating a mouse with a keyboard in a computer system includes detecting whether a key event occurs in a switch matrix of the keyboard of the computer system, determining whether the key event is related to a specific control key when the key event is detected, transforming a location of a switch in which the key event occurs into a pair of coordinates when the key event is not related to the specific control key and is a key-pressed event, calculating a pair of displacements between the latest two pairs of coordinates to obtain a movement data, and transmitting the movement data to a mouse driver of the computer system so that an operating system of the computer system is capable of receiving the movement data by the mouse driver, for controlling movement of a pointer shown on a screen of the computer system.

## Claims

### Claim 1

A method for simulating a mouse with a keyboard in a computer system, the method comprising:
detecting whether a key event occurs in a switch matrix of the keyboard of the computer system;
determining whether the key event is related to a specific control key when the key event is detected;
transforming a location of a switch in which the key event occurs into a pair of coordinates when the key event is not related to the specific control key and is a key-pressed event;
calculating a pair of displacements between the latest two pairs of coordinates to obtain a movement data; and
transmitting the movement data to a mouse driver of the computer system so that an operating system of the computer system is capable of receiving the movement data by the mouse driver, for controlling movement of a pointer shown on a screen of the computer system.

### Claim 2 (depends on 1)

The method of claim 1, wherein the specific control key is a control key used by the operating system.

### Claim 3 (depends on 1)

The method of claim 1, wherein the specific control key is a mouse control key.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
transmitting a scan code related to the specific control key to the operating system when the key event is related to the specific control key and the specific control key is used by the operating system.

### Claim 5 (depends on 1)

The method of claim 1 further comprising:
recording a mouse state value for the key event when the key event is related to the specific control key and the specific control key is used for a mouse control key.

### Claim 6 (depends on 5)

The method of claim 5 further comprising:
transmitting the mouse state value to the mouse driver while transmitting the movement data to the mouse driver.

### Claim 7

An input device for a computer system comprising:
a keyboard; and
a keyboard controller, coupled to the keyboard and the computer system, for:
detecting whether a key event occurs in a switch matrix of the keyboard;
determining whether the key event is related to a specific control key when the key event is detected;
transforming a location of a switch in which the key event occurs into a pair of coordinates when the key event is not related to the specific control key and is a key-pressed event;
calculating a pair of displacements between the latest two pairs of coordinates to obtain a movement data; and
transmitting the movement data to a mouse driver of the computer system so that an operating system of the computer system is capable of receiving the movement data by the mouse driver, for controlling movement of a pointer shown on a screen of the computer system.

### Claim 8 (depends on 7)

The input device of claim 7, wherein the specific control key is a control key used by the operating system.

### Claim 9 (depends on 7)

The input device of claim 7, wherein the specific control key is a mouse control key.

### Claim 10 (depends on 7)

The input device of claim 7, wherein the keyboard controller is utilized for transmitting a scan code related to the specific control key to the operating system when the key event is related to the specific control key and the specific control key is used by the operating system.

### Claim 11 (depends on 7)

The input device of claim 7, wherein the keyboard controller is utilized for recording a mouse state value for the key event when the key event is related to the specific control key and the specific control key is used for a mouse control key.

### Claim 12 (depends on 11)

The input device of claim 11, wherein the keyboard controller is utilized for transmitting the mouse state value to the mouse driver while transmitting the movement data to the mouse driver.
