JPH08286827A - Data input device - Google Patents
Data input deviceInfo
- Publication number
- JPH08286827A JPH08286827A JP7088260A JP8826095A JPH08286827A JP H08286827 A JPH08286827 A JP H08286827A JP 7088260 A JP7088260 A JP 7088260A JP 8826095 A JP8826095 A JP 8826095A JP H08286827 A JPH08286827 A JP H08286827A
- Authority
- JP
- Japan
- Prior art keywords
- data
- mouse
- byte
- personal computer
- bytes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、データ入力装置に係わ
り、特に、主制御装置に2つまたは3つの操作釦を有す
る2種の付属装置が選択的に接続された際に、主制御装
置は、付属装置側から供給される入力座標位置を示すデ
ータに基づき接続された付属装置の種類を判別し、いず
れの種類の付属装置の供給データに対しても応答可能な
データ入力装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data input device, and more particularly to a main control device when two kinds of auxiliary devices having two or three operation buttons are selectively connected to the main control device. Relates to a data input device capable of determining the type of an attached device connected based on data indicating an input coordinate position supplied from the attached device side and responding to supply data of any type of attached device.
【0002】[0002]
【従来の技術】従来、主制御装置であるパーソナルコン
ピュータ(パソコン)においては、付属装置であるマウ
スが接続され、そのマウスの操作によって指定された座
標入力データをパソコンに供給することが慣用されてい
る。この場合、パソコンに接続されるマウスは、通常、
2つの操作釦を有するもの(以下、これを2ボタンマウ
スという)であるが、最近では、3つの操作釦を有する
もの(以下、これを3ボタンマウスという)も使用され
るようになってきている。2. Description of the Related Art Conventionally, in a personal computer (personal computer) which is a main control unit, a mouse which is an auxiliary unit is connected and it is customary to supply coordinate input data designated by the operation of the mouse to the personal computer. There is. In this case, the mouse connected to the computer is usually
The one having two operation buttons (hereinafter, referred to as a two-button mouse) is used recently, but the one having three operation buttons (hereinafter, referred to as a three-button mouse) is also used. There is.
【0003】この場合、パソコンに2ボタンマウスが接
続されると、2ボタンマウスの操作に基づいて、2ボタ
ンマウス側から所定フォーマットの座標入力データがパ
ソコン側に供給され、パソコン側ではこの座標入力デー
タを内蔵のアプリケーションソフトウエアによって処理
している。In this case, when a two-button mouse is connected to the personal computer, coordinate input data of a predetermined format is supplied from the two-button mouse side to the personal computer side based on the operation of the two-button mouse. Data is processed by the built-in application software.
【0004】ここで、図4は、パソコンに2ボタンマウ
スが接続された際に、2ボタンマウスから出力される既
知のデータフォーマットの一例を示す説明図である。FIG. 4 is an explanatory diagram showing an example of a known data format output from the 2-button mouse when the 2-button mouse is connected to the personal computer.
【0005】図4に示されるように、2ボタンマウスか
ら出力されるデータフォーマットは第1バイト、第2バ
イト、第3バイト構成になっており、第1乃至第3バイ
トはそれぞれ7ビット構成(実際は7ビット乃至0ビッ
トからなる8ビット構成であるが、その中の7ビット目
は使われていないので、実質的に7ビット構成である)
になっている。そして、第1バイトにおいては、6ビッ
ト目(スタートビット)はいつも「1」になっており、
5ビット目は2ボタンの左側ボタンが操作されたとき
「1」、操作されないとき「0」になり、4ビット目は
2ボタンの右側ボタンが操作されたとき「1」、操作さ
れないとき「0」になり、3ビット及び2ビット目はX
軸方向の座標位置を示すデータX6 、X7 であり、1ビ
ット及び0ビット目はY軸方向の座標位置を示すデータ
Y6 、Y7 である。また、第2バイトにおいては、6ビ
ット目(スタートビット)はいつも「0」になってお
り、それに続く5ビット乃至0ビット目はX軸方向の座
標位置を示すデータX5 、X4、X3 、X2 、X1 、X
0 である。さらに、第3バイトにおいては、6ビット目
(スタートビット)はいつも「0」になっており、それ
に続く5ビット乃至0ビット目はX軸方向の座標位置を
示すデータY5 、Y4 、Y3 、Y2 、Y1 、Y0であ
る。この場合、X0 乃至X7 は、全体で8ビットのバイ
ナリデータを構成してX軸方向の変化量を表しており、
正の場合に右方向、負の場合に左方向への移動を示して
いる。Y0 乃至Y7 も同様で、全体で8ビットのバイナ
リデータを構成してY軸方向の変化量を表しており、正
の場合に上方向、負の場合に下方向への移動を示してい
る。As shown in FIG. 4, the data format output from the two-button mouse has a first byte, a second byte, and a third byte. Each of the first to third bytes has a 7-bit configuration ( Actually, it has an 8-bit structure consisting of 7 bits to 0 bits, but since the 7th bit among them is not used, it is substantially a 7-bit structure.)
It has become. Then, in the first byte, the 6th bit (start bit) is always "1",
The 5th bit is "1" when the left button of the 2 button is operated, "0" when it is not operated, and the 4th bit is "1" when the right button of the 2 button is operated and "0" when it is not operated. , The 3rd and 2nd bits are X
Data X 6 and X 7 indicate coordinate positions in the axial direction, and the 1st and 0th bits are data Y 6 and Y 7 indicating coordinate positions in the Y axis direction. In the second byte, the sixth bit (the start bit) is always set to "0", the data X 5, X 4 5 bits to 0-th bit subsequent indicating the coordinate position of the X-axis direction, X 3 , X 2 , X 1 , X
It is 0 . Further, in the third byte, the sixth bit (the start bit) is always set to "0", data Y 5, Y 4 5 bits to 0-th bit subsequent to indicating the coordinate position of the X-axis direction, Y 3 , Y 2 , Y 1 , and Y 0 . In this case, X 0 to X 7 constitute 8-bit binary data as a whole and represent the amount of change in the X-axis direction,
A positive value indicates rightward movement, and a negative value indicates leftward movement. The same applies to Y 0 to Y 7 , and 8-bit binary data is formed as a whole to represent the amount of change in the Y-axis direction. Positive values indicate upward movement, and negative values indicate downward movement. There is.
【0006】[0006]
【発明が解決しようとする課題】パソコンにマウスを接
続して使用する場合、パソコンは、2ボタンマウスが接
続されたとき、内蔵されているアプリケーションソフト
ウエアに基づいて、2ボタンマウスから出力される所定
フォーマットのデータに応答し、データの内容にしたが
ったデータ処理を行うことができる。When a mouse is connected to a personal computer, the personal computer outputs data from the two-button mouse based on the built-in application software when the two-button mouse is connected. It is possible to perform data processing according to the content of the data in response to the data of the predetermined format.
【0007】ところが、3ボタンマウスが接続されたと
き、3ボタンマウスから出力されるデータは、当然に、
2ボタンマウスから出力される所定フォーマットのデー
タと異なっているので、パソコンは、内蔵のアプリケー
ションソフトウエアによって、3ボタンてマウスから出
力されるデータを処理することができない。However, when the 3-button mouse is connected, the data output from the 3-button mouse is, of course,
The personal computer cannot process the data output from the 3-button mouse by the built-in application software because the data is different from the predetermined format data output from the 2-button mouse.
【0008】このように、既知のデータ入力装置におい
ては、主制御装置、例えば、パソコンに所要の付属装
置、例えば、2ボタンマウスが接続されたときだけ、主
制御装置は付属装置の操作に応答して所要のデータ処理
を行うが、付属装置の種類が変更されると、主制御装置
はもはやその付属装置に応答せず、その付属装置に応答
させるためには主制御装置に内蔵のアプリケーションソ
フトウエアを交換する必要があるという問題がある。Thus, in the known data input device, the main controller responds to the operation of the auxiliary device only when the required auxiliary device, for example, a two-button mouse, is connected to the main controller, for example, a personal computer. However, if the type of auxiliary device is changed, the main control unit will no longer respond to the auxiliary device. There is a problem that the wear needs to be replaced.
【0009】本発明は、かかる問題点を解決するもの
で、その目的は、主制御装置に付属装置を接続する場合
に、主制御装置で付属装置の種類を判別し、その判別に
応じたデータ処理を行うことが可能なデータ入力装置を
提供することにある。The present invention solves such a problem, and an object thereof is to discriminate the type of the auxiliary device by the main control device when connecting the auxiliary device to the main control device, and to obtain the data according to the discrimination. It is to provide a data input device capable of performing processing.
【0010】[0010]
【課題を解決するための手段】前記目的を達成するため
に、本発明は、主制御装置に2つまたは3つの操作釦を
有する付属装置が選択的に接続され、前記2つの操作釦
を有する付属装置の接続時は3バイトの座標位置を示す
データが前記主制御装置に供給され、前記3つの操作釦
を有する付属装置の接続時は前記3バイトの座標位置を
示すデータに続いて3番目の操作釦の操作状態を示す1
バイトの追加データが前記主制御装置に供給され、前記
主制御装置は、前記1バイトの追加データの有無により
前記2つまたは3つの操作釦を有する付属装置であるこ
とを判別し、前記3バイトの座標位置を示すデータまた
は前記3バイトの座標位置を示すデータ及び前記1バイ
トの追加データにそれぞれ応答する手段を備える。In order to achieve the above object, according to the present invention, an auxiliary device having two or three operation buttons is selectively connected to a main control unit, and the auxiliary device has two operation buttons. When the accessory device is connected, data indicating the 3-byte coordinate position is supplied to the main control device, and when the accessory device having the three operation buttons is connected, the data indicating the 3-byte coordinate position is followed by the third data. Showing the operation state of the operation button of 1
Bytes of additional data are supplied to the main controller, and the main controller determines whether the auxiliary device has the two or three operation buttons according to the presence or absence of the one byte of additional data, and the three bytes Means for responding to the data indicating the coordinate position of 1 or the data indicating the coordinate position of 3 bytes and the additional data of 1 byte.
【0011】[0011]
【作用】前記手段においては、主制御装置は、接続され
た付属装置が操作された際に、付属装置から出力される
3バイトの入力座標位置を示すデータの受領を行い、こ
の3バイトの入力座標位置を示すデータに続いて1バイ
トの追加データが受領されるか否かに応じて、2つの操
作釦を有する付属装置であるか、もしくは、3つの操作
釦を有する付属装置であるかを判別する。このとき、主
制御装置は、2つの操作釦を有する付属装置であるとの
判別をすると、引き続いて3バイトの座標位置を示すデ
ータの受領を行ってそれらのデータ内容に基づく所定の
処理を実行し、一方、3つの操作釦を有する付属装置で
あるとの判別をすると、3バイトの座標位置を示すデー
タの受領に続いて1バイトの追加データの受領を行い、
それら受領したデータの内容に基づいた所定の処理を行
う。In the above means, the main control device receives the data indicating the input coordinate position of 3 bytes output from the auxiliary device when the connected auxiliary device is operated, and inputs the 3 bytes. Depending on whether 1 byte of additional data is received following the data indicating the coordinate position, whether it is an accessory device having two operation buttons or an accessory device having three operation buttons. Determine. At this time, when the main control device determines that the device is an auxiliary device having two operation buttons, it subsequently receives data indicating the coordinate position of 3 bytes and executes a predetermined process based on the data contents. On the other hand, if it is determined that the device is an accessory device having three operation buttons, 1 byte of additional data is received after receiving the data indicating the coordinate position of 3 bytes,
Predetermined processing is performed based on the contents of the received data.
【0012】このように、前記手段によれば、主制御装
置において接続される付属装置が、2つの操作釦を有す
る付属装置または3つの操作釦を有する付属装置である
かを判別し、その判別結果に応じて供給されるデータ処
理を各別に行うようにしているので、主制御装置に接続
される付属装置の種別に応じたデータ処理を行うことが
可能になり、付属装置の種別毎に、異なるアプリケーシ
ョンソフトウエアを内蔵した主制御装置を用いる必要が
なくなり、互換性のあるデータ入力装置を得ることがで
きる。As described above, according to the above-mentioned means, it is determined whether the accessory device connected in the main controller is the accessory device having two operation buttons or the accessory device having three operation buttons, and the determination is made. Since the data processing supplied according to the result is performed separately, it becomes possible to perform the data processing according to the type of the auxiliary device connected to the main control device, and for each type of the auxiliary device, There is no need to use a main controller that incorporates different application software, and a compatible data input device can be obtained.
【0013】[0013]
【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。Embodiments of the present invention will now be described in detail with reference to the drawings.
【0014】図1は、本発明に係わるデータ入力装置の
一実施例の概略の構成を示すブロック構成図であって、
主制御装置にパーソナルコンピュータ(パソコン)が用
いられ、付属装置にマウスが用いられる例を示すもので
ある。FIG. 1 is a block diagram showing a schematic configuration of an embodiment of a data input device according to the present invention.
A personal computer (personal computer) is used as the main control device, and a mouse is used as the accessory device.
【0015】図1において、パソコン1にはケーブル4
を介して2つの操作ボタンを有するマウス(以下、これ
を2ボタンマウスという)2または3つの操作ボタンを
有するマウス(以下、これを3ボタンマウスという)3
のいずれかが接続される。また、パソコン1は、2ボタ
ンマウス2または3ボタンマウス3に接続されるマウス
ドライバー5と、マウスドライバー5で受領したデータ
を判定するデータ判定部6と、データ判定部6から供給
されるデータを処理するデータ処理部7と、アプリケー
ションソフトウエア(動作プログラム)を内蔵したリー
ドオンリメモリ(ROM)8と、処理したデータを表示
する表示部9と、パソコン1の各部の動作を制御する制
御部10とを備えている。この場合、2ボタンマウス2
がパソコン1に接続されたときには、2ボタンマウス2
の操作により、2ボタンマウス2側からパソコン1側に
図4に図示のデータフォーマットによる第1乃至第3バ
イト構成のデータが出力され、3ボタンマウス3がパソ
コン1に接続されたときには、3ボタンマウス3の操作
により、3ボタンマウス3側からパソコン1側に以下の
図2に示すようなデータフォーマットによる第1乃至第
4バイト構成のデータが出力される。In FIG. 1, a cable 4 is attached to the personal computer 1.
A mouse having two operation buttons (hereinafter, referred to as a two-button mouse) 2 or a mouse having three operation buttons (hereinafter, referred to as a three-button mouse) 3
Is connected. The personal computer 1 also stores a mouse driver 5 connected to the 2-button mouse 2 or the 3-button mouse 3, a data determination unit 6 for determining data received by the mouse driver 5, and data supplied from the data determination unit 6. A data processing unit 7 for processing, a read-only memory (ROM) 8 containing application software (operation program), a display unit 9 for displaying processed data, and a control unit 10 for controlling the operation of each unit of the personal computer 1. It has and. In this case, 2 button mouse 2
2 button mouse 2 when is connected to PC 1
When the 3 button mouse 3 is connected to the personal computer 1, 3 button data is output from the 2 button mouse 2 side to the personal computer 1 side in the data format shown in FIG. When the mouse 3 is operated, the data of the first to fourth bytes having the data format shown in FIG. 2 below is output from the 3-button mouse 3 side to the personal computer 1 side.
【0016】ここで、図2は、本実施例のデータ入力装
置において3ボタンマウス3から出力されるデータフォ
ーマットを示す説明図である。FIG. 2 is an explanatory diagram showing the data format output from the 3-button mouse 3 in the data input device of this embodiment.
【0017】図2に示されるように、3ボタンマウス3
から出力されるデータフォーマットは第1バイト、第2
バイト、第3バイト、第4バイト構成のもので、第1乃
至第4バイトはそれぞれ7ビット構成(実際は7ビット
乃至0ビットからなる8ビット構成であるが、その中の
7ビット目は使われていないので、実質的に7ビット構
成である)になっている。そして、かかる第1乃至第4
バイト構成の中で、第1バイト乃至第3バイト構成は、
図4に図示の既知の2ボタンマウス2から出力されるデ
ータフォーマットと全く同じものであり、追加データで
ある第4バイト構成は、6ビット目(スタートビット)
はいつも「1」になっており、5ビット目は3番目のボ
タンが操作されたとき「1」、操作されないとき「0」
になり、4ビット目乃至0ビット目はダミービットで、
いずれも「0」になっている。As shown in FIG. 2, a 3-button mouse 3
The data format output from is 1st byte, 2nd
Byte, 3rd byte, 4th byte, and 1st to 4th bytes each have 7-bit structure (actually 8 bits structure consisting of 7 bits to 0 bits, but the 7th bit of them is not used. It has a 7-bit configuration). Then, the first to fourth
Of the byte configurations, the first to third byte configurations are
This is exactly the same as the data format output from the known 2-button mouse 2 shown in FIG. 4, and the 4th byte structure that is the additional data is the 6th bit (start bit).
Is always "1", and the fifth bit is "1" when the third button is operated and "0" when it is not operated.
And the 4th to 0th bits are dummy bits,
Both are “0”.
【0018】また、図3は、パソコン1において実行さ
れるマウスの種別の判定及びデータの受領を行う際の動
作過程を示すフローチャートである。FIG. 3 is a flow chart showing an operation process executed in the personal computer 1 for determining the type of mouse and receiving data.
【0019】このフローチャートを用い、本実施例の動
作について説明する。The operation of this embodiment will be described with reference to this flowchart.
【0020】まず、パソコン1にケーブル4を介して2
ボタンマウス2または3ボタンマウス3のいずれかが接
続され、マウスドライバー5が接続されたマウス2
(3)に対してデータの出力を要請する指令を発する
と、マウス2(3)は、ケーブル4を介して順次所定の
フォーマットにしたがったデータを出力する。First, 2 is connected to the personal computer 1 via the cable 4.
Mouse 2 with either button mouse 2 or 3 button mouse 3 connected and mouse driver 5 connected
When a command requesting the output of data is issued to (3), the mouse 2 (3) sequentially outputs data according to a predetermined format via the cable 4.
【0021】このとき、ステップS1において、マウス
ドライバー5は、マウス2(3)から供給される第1バ
イトのデータを受領し、受領した第1バイトのデータを
データ判定部6に供給する。At this time, in step S1, the mouse driver 5 receives the data of the first byte supplied from the mouse 2 (3) and supplies the received data of the first byte to the data judging section 6.
【0022】次に、ステップS2において、データ判定
部6は、供給された第1バイトのデータのスタートビッ
ト(6ビット目)が「1」であるか否かを判断する。こ
のとき、スタートビットが「1」であると判断した
(Y)ときは、正規の第1バイトのデータであると判断
して次のステップS3に移行し、一方、スタートビット
が「1」でないと判定した(N)ときは、正規の第1バ
イトのデータでないと判断して最初のステップS1に戻
り、正規の第1バイトのデータの到来を待つ。Next, in step S2, the data determination unit 6 determines whether or not the start bit (6th bit) of the supplied data of the first byte is "1". At this time, when it is determined that the start bit is "1" (Y), it is determined that the data is the regular first byte data, and the process proceeds to the next step S3, while the start bit is not "1". If it is determined to be (N), it is determined that the data is not the regular first byte data, and the process returns to the first step S1 to wait for the arrival of the regular first byte data.
【0023】次いで、ステップS3において、データ判
定部6は、第1バイトのデータをデータ処理部7に供給
し、この第1バイトのデータを一時的にデータ処理部7
内のバッファメモリ(図示なし)に収納する。Next, in step S3, the data determination unit 6 supplies the data of the first byte to the data processing unit 7, and the data of the first byte is temporarily processed by the data processing unit 7.
It is stored in the internal buffer memory (not shown).
【0024】続く、ステップS4において、マウスドラ
イバー5は、マウス2(3)から供給される第2バイト
のデータを受領し、受領した第2バイトのデータをデー
タ判定部6に供給する。In the subsequent step S4, the mouse driver 5 receives the second byte of data supplied from the mouse 2 (3) and supplies the received second byte of data to the data judging section 6.
【0025】続いて、ステップS5において、データ判
定部6は、供給された第2バイトのデータをデータ処理
部7に供給し、この第2バイトのデータを一時的にデー
タ処理部7内のバッファメモリに収納する。Subsequently, in step S5, the data determination unit 6 supplies the supplied second byte data to the data processing unit 7, and temporarily stores the second byte data in the buffer in the data processing unit 7. Store in memory.
【0026】次に、ステップS6において、マウスドラ
イバー5は、マウス2(3)から供給される第3バイト
のデータを受領し、受領した第3バイトのデータをデー
タ判定部6に供給する。Next, in step S6, the mouse driver 5 receives the data of the third byte supplied from the mouse 2 (3), and supplies the received data of the third byte to the data determination unit 6.
【0027】次いで、ステップS7において、データ判
定部6は、供給された第3バイトのデータをデータ処理
部7に供給し、この第3バイトのデータを一時的にデー
タ処理部7内のバッファメモリに収納する。Next, in step S7, the data determination unit 6 supplies the supplied third byte data to the data processing unit 7, and temporarily stores the third byte data in the buffer memory in the data processing unit 7. To store.
【0028】続く、ステップS8において、マウスドラ
イバー5は、マウス2(3)から供給される第4バイト
のデータ(追加データ)を受領し、受領した第4バイト
のデータ(追加データ)をデータ判定部6に供給する。In the next step S8, the mouse driver 5 receives the fourth byte data (additional data) supplied from the mouse 2 (3), and judges the received fourth byte data (additional data). Supply to the part 6.
【0029】続いて、ステップS9において、データ判
定部6は、供給された第4バイトのデータ(追加デー
タ)のスタートビット(6ビット目)が「1」であるか
否かを判断する。このとき、スタートビットが「1」で
あると判断した(Y)ときは、当該バイトのデータが次
の正規の第1バイトのデータであり、かつ、接続された
マウス2(3)が2ビットマウス2であると判定して前
のステップS3に戻り、一方、スタートビットが「0」
であると判断した(N)ときは、当該バイトのデータが
正規の第4バイトのデータ(追加データ)でありかつ、
接続されたマウス2(3)が3ビットマウス3であると
判定して次のステップS10に移行する。このとき、デ
ータ処理部7は、接続されたマウス2(3)が2ビット
マウス2であると判定した場合、内部のバッファメモリ
に収納した第1乃至第3バイトのデータを読み出し、読
み出したデータを処理した後、表示部9等に供給し、当
該データに基づく所要の座標位置の表示を行う。Subsequently, in step S9, the data determination section 6 determines whether or not the start bit (6th bit) of the supplied fourth byte data (additional data) is "1". At this time, when it is determined that the start bit is “1” (Y), the data of the relevant byte is the data of the next regular first byte, and the connected mouse 2 (3) has 2 bits. The mouse is determined to be 2, and the process returns to the previous step S3, while the start bit is "0".
(N), the data in the relevant byte is the regular fourth byte data (additional data), and
It is determined that the connected mouse 2 (3) is the 3-bit mouse 3, and the process proceeds to the next step S10. At this time, when the data processing unit 7 determines that the connected mouse 2 (3) is the 2-bit mouse 2, the data processing unit 7 reads the first to third bytes of data stored in the internal buffer memory, and reads the read data. Is processed and then supplied to the display unit 9 or the like to display the required coordinate position based on the data.
【0030】次いで、ステップS10において、データ
判定部6は、供給された第4バイトのデータ(追加デー
タ)をデータ処理部7に供給し、この第4バイトのデー
タ(追加データ)を一時的にデータ処理部7内のバッフ
ァメモリに収納し、最初のステップS1に戻る。このと
き、データ処理部7は、内部のバッファメモリに収納し
た第1乃至第4バイトのデータを読み出し、読み出した
データを処理した後、表示部9等に供給し、当該データ
に基づく所要の座標位置の表示を行う。Next, in step S10, the data determination unit 6 supplies the supplied 4th byte data (additional data) to the data processing unit 7, and temporarily stores this 4th byte data (additional data). The data is stored in the buffer memory in the data processing unit 7, and the process returns to the first step S1. At this time, the data processing unit 7 reads the first to fourth bytes of data stored in the internal buffer memory, processes the read data, and then supplies the data to the display unit 9 or the like to obtain the required coordinates based on the data. The position is displayed.
【0031】なお、これらのステップS1乃至S10で
実行される各動作は、いずれも、ROM8に収納されて
いるアプリケーションソフトウエア(動作プログラム)
によって動作する制御部9の制御の基に行われるもの
で、このアプリケーションソフトウエア(動作プログラ
ム)は、2ボタンマウス2からのデータの受領を行う既
知のアプリケーションソフトウエア(動作プログラム)
に、第4バイトの6ビット目の判断をする部分と、第4
バイトのデータ(追加データ)を受領する部分を付加
し、2ボタンマウス2の接続時においても、または、3
ボタンマウス3の接続時においてもそれらのマウス2
(3)から供給されるデータを受領でき、かつ、その受
領データに基づき所要の座標位置の設定が行えるように
している。The operations executed in steps S1 to S10 are all application software (operation program) stored in the ROM 8.
This application software (operation program) is performed under the control of the control unit 9 operated by the known application software (operation program) for receiving data from the two-button mouse 2.
And the part that determines the 6th bit of the 4th byte and the 4th
A part for receiving byte data (additional data) is added, and even when the 2-button mouse 2 is connected, or 3
Even when the button mouse 3 is connected, those mouse 2
The data supplied from (3) can be received, and the required coordinate position can be set based on the received data.
【0032】このように、本実施例によれば、パソコン
1に2ボタンマウス2または3ボタンマウス3のいずれ
のものが接続されたとしても、パソコン1は、マウス2
(3)から出力されるデータによって接続されるマウス
2(3)の種別を判定し、そのい判定結果に応じたデー
タ処理が行われるので、パソコン1に接続されるマウス
2(3)の種別に応じたデータ処理を行うことが可能に
なり、マウス2(3)の種別毎に、異なるアプリケーシ
ョンソフトウエアを内蔵したパソコン1を用いる必要が
なくなり、互換性のあるデータ入力装置が得られる。As described above, according to this embodiment, even if either the 2-button mouse 2 or the 3-button mouse 3 is connected to the personal computer 1, the personal computer 1 is
The type of the mouse 2 (3) connected to the personal computer 1 is determined because the type of the mouse 2 (3) to be connected is determined based on the data output from (3) and data processing is performed according to the determination result. It becomes possible to perform data processing according to the above, and it becomes unnecessary to use the personal computer 1 having different application software built in for each type of the mouse 2 (3), and a compatible data input device can be obtained.
【0033】なお、本実施例においては、主制御装置が
パソコン1であり、付属装置が2ボタンマウス2または
3ボタンマウス3である例を挙げて説明したが、本発明
による主制御装置及び付属装置はパソコン1及びマウス
2(3)である場合に限られず、パソコン1やマウス2
(3)に類似の他の機器にも同様に適用できることは勿
論である。In this embodiment, the main controller is the personal computer 1 and the accessory is the two-button mouse 2 or the three-button mouse 3, but the main controller and the accessory according to the present invention have been described. The device is not limited to the personal computer 1 and the mouse 2 (3), but the personal computer 1 and the mouse 2
Of course, the same can be applied to other devices similar to (3).
【0034】[0034]
【発明の効果】以上詳細に説明したように、本発明によ
れば、主制御装置1において接続された付属装置2
(3)が2つの操作釦を有する付属装置2であるか、ま
たは、3つの操作釦を有する付属装置3であるかを判別
し、その判別結果に応じて供給されるデータ処理を各別
に行うようにしているので、主制御装置1に接続された
付属装置2(3)の種別に応じたデータ処理を行うこと
が可能になり、付属装置2(3)の種別毎に、異なるア
プリケーションソフトウエアを内蔵した主制御装置1を
用いる必要がなくなり、互換性のあるデータ入力装置が
得られるという効果がある。As described in detail above, according to the present invention, the auxiliary device 2 connected in the main control device 1 is connected.
It is determined whether (3) is the accessory device 2 having two operation buttons or the accessory device 3 having three operation buttons, and the data processing supplied according to the determination result is separately performed. Therefore, it becomes possible to perform data processing according to the type of the auxiliary device 2 (3) connected to the main control device 1, and different application software for each type of the auxiliary device 2 (3). Since there is no need to use the main control device 1 having a built-in device, there is an effect that a compatible data input device can be obtained.
【図1】本発明に係わるデータ入力装置の一実施例の概
略の構成を示すブロック構成図である。FIG. 1 is a block configuration diagram showing a schematic configuration of an embodiment of a data input device according to the present invention.
【図2】図1に図示の実施例のデータ入力装置において
3ボタンマウスから出力されるデータフォーマットを示
す説明図である。FIG. 2 is an explanatory diagram showing a data format output from a 3-button mouse in the data input device of the embodiment shown in FIG.
【図3】パソコンにおいて実行されるマウスの種別の判
定及びデータの受領を行う際の動作過程を示すフローチ
ャートである。FIG. 3 is a flowchart showing an operation process when determining a mouse type and receiving data, which is executed in a personal computer.
【図4】パソコンに2ボタンマウスが接続された際に、
2ボタンマウスから出力される既知のデータフォーマッ
トの一例を示す説明図である。[Fig. 4] When a 2-button mouse is connected to a personal computer,
It is explanatory drawing which shows an example of the known data format output from a 2-button mouse.
1 パソコン(主制御装置) 2 2ボタンマウス(付属装置) 3 3ボタンマウス(付属装置) 4 ケーブル 5 マウスドライバー 6 データ判定部 7 データ処理部 8 リードオンリメモリ(ROM) 9 表示部 10 制御部 1 PC (main control unit) 2 2 button mouse (attached device) 3 3 button mouse (attached device) 4 cable 5 mouse driver 6 data judgment unit 7 data processing unit 8 read only memory (ROM) 9 display unit 10 control unit
Claims (5)
有する付属装置が選択的に接続され、前記2つの操作釦
を有する付属装置の接続時は3バイトの座標位置を示す
データが前記主制御装置に供給され、前記3つの操作釦
を有する付属装置の接続時は前記3バイトの座標位置を
示すデータに続いて3番目の操作釦の操作状態を示す1
バイトの追加データが前記主制御装置に供給され、前記
主制御装置は、前記1バイトの追加データの有無により
前記2つまたは3つの操作釦を有する付属装置であるこ
とを判別し、前記3バイトの座標位置を示すデータまた
は前記3バイトの入力座標位置を示すデータ及び前記1
バイトの追加データにそれぞれ応答することを特徴とす
るデータ入力装置。1. An auxiliary device having two or three operation buttons is selectively connected to a main control device, and when an auxiliary device having two operation buttons is connected, data indicating a coordinate position of 3 bytes is said. When the accessory device having the three operation buttons is supplied to the main control device, the operation state of the third operation button is displayed after the data indicating the coordinate position of the three bytes.
Bytes of additional data are supplied to the main controller, and the main controller determines whether the auxiliary device has the two or three operation buttons according to the presence or absence of the one byte of additional data, and the three bytes The data indicating the coordinate position of or the data indicating the input coordinate position of the above 3 bytes and the above 1
A data input device characterized by responding to each additional byte of data.
は、7ビットのものからなり、第1バイトのスタートビ
ットが「1」で、第2及び第3バイトのスタートビット
がそれぞれ「0」であることを特徴とする請求項1に記
載のデータ入力装置。2. The data indicating the coordinate position of 3 bytes consists of 7 bits, and the start bit of the first byte is "1" and the start bits of the second and third bytes are "0". The data input device according to claim 1, wherein the data input device is provided.
のものからなり、スタートビットが「0」あることを特
徴とする請求項1乃至2のいずれかに記載のデータ入力
装置。3. The data input device according to claim 1, wherein the 1-byte additional data consists of 7-bit data, and the start bit is “0”.
ビットにより3つ目の操作釦の操作状態が示されること
を特徴とする請求項1乃至3のいずれかに記載のデータ
入力装置。4. The data input device according to claim 1, wherein in the 1-byte additional data, the operation state of the third operation button is indicated by the sixth bit.
御装置はパーソナルコンピュータ(パソコン)であるこ
とを特徴とする請求項1乃至4のいずれかに記載のデー
タ入力装置。5. The data input device according to claim 1, wherein the accessory device is a mouse, and the main controller is a personal computer (personal computer).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7088260A JPH08286827A (en) | 1995-04-13 | 1995-04-13 | Data input device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7088260A JPH08286827A (en) | 1995-04-13 | 1995-04-13 | Data input device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08286827A true JPH08286827A (en) | 1996-11-01 |
Family
ID=13937917
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7088260A Pending JPH08286827A (en) | 1995-04-13 | 1995-04-13 | Data input device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08286827A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6664947B1 (en) | 1999-02-24 | 2003-12-16 | Gueorgui K. Vinogradov | Safe and handy pointing device |
| US6681268B1 (en) | 1998-12-28 | 2004-01-20 | Alps Electric Co., Ltd. | Dual pointing screen cursor device comprising touch pad and stick wherein each has identifying bytes that is transmitted through single channel port |
-
1995
- 1995-04-13 JP JP7088260A patent/JPH08286827A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6681268B1 (en) | 1998-12-28 | 2004-01-20 | Alps Electric Co., Ltd. | Dual pointing screen cursor device comprising touch pad and stick wherein each has identifying bytes that is transmitted through single channel port |
| US6983336B2 (en) | 1998-12-28 | 2006-01-03 | Alps Electric Co., Ltd. | Dual pointing device used to control a cursor having absolute and relative pointing devices |
| US6664947B1 (en) | 1999-02-24 | 2003-12-16 | Gueorgui K. Vinogradov | Safe and handy pointing device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0249399B1 (en) | Multiwindow control method and apparatus for work station having multiwindow function | |
| US5241646A (en) | Systems for changing hardware parameters using sub-CPU for sensing specialized key inputs and main CPU for changes | |
| JPH08286827A (en) | Data input device | |
| US5206813A (en) | Graphic display method for numerical controller | |
| JPH0726754Y2 (en) | Input processing device | |
| JPH022595A (en) | Cursor control system for display terminal equipment | |
| JPH01236309A (en) | Display device for numerical controller | |
| JPH0239346A (en) | Screen shift control system | |
| JPH10105226A (en) | Programmable display device | |
| JPH0113114B2 (en) | ||
| JP2985237B2 (en) | Graphic processing unit | |
| JP2559131B2 (en) | Screen controller | |
| JPH0440517A (en) | Input/output device | |
| JPH08286835A (en) | Information processing device | |
| JPH05143236A (en) | Data input processor | |
| JPH0728445A (en) | Image display controller | |
| JPH0388006A (en) | Numerical controller provided with current position display function following coordinate conversion | |
| JPH07152585A (en) | Priority control monitor system | |
| JPH0194483A (en) | Layout design supporting device | |
| JPS63113704A (en) | Programmable controller with measurement display function | |
| JPH01291319A (en) | Display device | |
| JPH01199259A (en) | Virtual terminal controller | |
| JPH04191799A (en) | Display controller | |
| JPH01161292A (en) | Display controller | |
| JPS63195735A (en) | Instruction executing system |