Patent ID: 7631123

Claim:
A keyboard-video-mouse (KVM) switch for switching among a plurality of computers, the KVM switch comprising: a movement detector, detecting a movement of a mouse to generate a movement signal; a control unit coupled to the movement detector, generating a control signal based on the movement signal from the movement detector; a switch unit coupled to the control unit and the computers, switching among the computers to select one of the computers based on the control signal; a timer coupled to the control unit for timing a set time period, wherein the control unit resets the timer when the set time period of the timer is expired; a first distance register coupled to the movement detector and the control unit, accumulating a first movement distance during the set time period when the mouse is moved at a first direction if the timer times according to the set time period and the timed period is within the set time period; and a second distance register coupled to the movement detector and the control unit, accumulating a second movement distance during the set time period when the mouse is moved at a second direction if the timer times according to the set time period and the timed period is within the set time period; wherein the control unit compares the first accumulated movement distance and the second accumulated movement distance; and wherein the control unit compares one of the first and second accumulated movement distances with a switching threshold value.