JP2536517B2 - Cursor movement key control system - Google Patents

Cursor movement key control system

Info

Publication number
JP2536517B2
JP2536517B2 JP62097905A JP9790587A JP2536517B2 JP 2536517 B2 JP2536517 B2 JP 2536517B2 JP 62097905 A JP62097905 A JP 62097905A JP 9790587 A JP9790587 A JP 9790587A JP 2536517 B2 JP2536517 B2 JP 2536517B2
Authority
JP
Japan
Prior art keywords
key
cursor movement
cursor
keyboard
output
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.)
Expired - Lifetime
Application number
JP62097905A
Other languages
Japanese (ja)
Other versions
JPS63263515A (en
Inventor
茂樹 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62097905A priority Critical patent/JP2536517B2/en
Publication of JPS63263515A publication Critical patent/JPS63263515A/en
Application granted granted Critical
Publication of JP2536517B2 publication Critical patent/JP2536517B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はカーソル移動キー制御方式に関し、特に日本
語ワードプロセッサ等のデータ入力装置におけるカーソ
ル移動キー制御方式に関する。
The present invention relates to a cursor movement key control system, and more particularly to a cursor movement key control system in a data input device such as a Japanese word processor.

〔従来の技術〕[Conventional technology]

従来、この種のカーソル移動キー制御方式が適用され
るデータ入力装置のキーボードには、キー入力をハード
ウェアで検知するハードセンス型のキーボードとソフト
ウェアで検知するソフトセンサ型のキーボードとが存在
した。
Conventionally, a keyboard of a data input device to which this type of cursor movement key control system is applied includes a hard sense type keyboard that detects key input by hardware and a soft sensor type keyboard that detects key input by software.

ハードセンス型のキーボードにおけるカーソル移動キ
ー制御方式では、カーソル移動キーをハードウェア的に
センスするのでカーソル移動キーが2つ同時に押下され
ても少しでも先に押下されたカーソル移動キーのキーコ
ードのみが出力されていた。また、ソフトセンス型のキ
ーボードにおけるカーソル移動キー制御方式では、カー
ソル移動キーをセンスする順番を交互に変えることによ
ってカーソル移動キーが2つ同時に押下され続けている
場合に各々のキーコードが順次出力されることによって
縦横4方向の他に斜めの方向を含む8方向のカーソル移
動が可能となっていたが、斜め45度以外の複雑なカーソ
ルの移動の制御を行うことはできなかった。
In the cursor movement key control method in the hard-sense type keyboard, since the cursor movement key is sensed by hardware, even if two cursor movement keys are pressed at the same time, only the key code of the cursor movement key that is pressed earlier is detected. It was being output. Further, in the cursor movement key control method in the soft-sense type keyboard, by alternately changing the order in which the cursor movement keys are sensed, when two cursor movement keys are continuously pressed at the same time, each key code is sequentially output. As a result, the cursor can be moved in eight directions including diagonal directions in addition to the four vertical and horizontal directions, but complicated cursor movements other than 45 degrees can not be controlled.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来のカーソル移動キー制御方式では、カー
ソルの移動の制御に制限があるので、日本語ワードプロ
セッサのようにマンマシンインタフェースが重視される
データ入力装置においては、利用者にとって自由にカー
ソルを移動しCRT(Cathode Ray Tube)等の表示装置
上の任意の場所に位置付けるのに操作性が悪く感じられ
るという欠点がある。
In the conventional cursor movement key control method described above, there is a limitation in controlling the movement of the cursor. Therefore, in a data input device such as a Japanese word processor where a man-machine interface is important, the user can freely move the cursor. There is a drawback in that the operability feels poor when it is positioned anywhere on a display device such as a CRT (Cathode Ray Tube).

マウスのようなポインティングデバイスが使用できる
場合にも、日本語ワードプロセッサのようなキーボード
入力が中心のデータ入力装置では手がキーボードから離
れてしまうのを避けるためにキーボードからのカーソル
の移動の指示が行われるので、上述のような欠点が存在
することには変わりがない。
Even when a pointing device such as a mouse can be used, a data input device such as a Japanese word processor that mainly uses keyboard input is instructed to move the cursor from the keyboard to prevent the hand from leaving the keyboard. Therefore, the above-mentioned drawbacks still exist.

本発明の目的は、上述の点に鑑み、利用者にとって自
由にカーソルを移動することができて表示装置上の任意
の場所にカーソルを位置付けることができ、日本語ワー
ドプロセッサ等のキーボード入力が中心のデータ入力装
置の操作性を向上することができるカーソル移動キー制
御方式を提供することにある。
In view of the above points, an object of the present invention is to allow the user to freely move the cursor, position the cursor at any position on the display device, and focus on keyboard input of a Japanese word processor or the like. An object of the present invention is to provide a cursor movement key control method capable of improving the operability of the data input device.

〔問題点を解決するための手段〕[Means for solving problems]

本発明のカーソル移動キー制御方式は、上下左右4方
向の表示装置上のカーソルの移動をそれぞれ指示する4
つのカーソル移動キーを有しキーが押下されたときには
メイクデータを出力しキーが離上されたときにはブレイ
クデータを出力するキーボードと、このキーボード上の
キーからの出力データに基づくキーコードの情報を格納
し4つのカーソル移動キーの中で逆方向とならない2つ
のカーソル移動キーの押下の順序と時間差とに基づき前
記表示装置上のカーソルの移動を制御するコントローラ
とを有する。
According to the cursor movement key control method of the present invention, the movement of the cursor on the display device in the four directions of up, down, left and right is instructed.
Stores the keyboard that has two cursor movement keys and outputs the make data when the key is pressed and the break data when the key is released, and the key code information based on the output data from the keys on this keyboard. And a controller that controls the movement of the cursor on the display device based on the pressing order and the time difference of the two cursor movement keys that are not in the opposite direction among the four cursor movement keys.

〔作用〕[Action]

本発明のカーソル移動キー制御方式では、キーボード
が上下左右4方向の表示装置上のカーソルの移動をそれ
ぞれ指示する4つのカーソル移動キーを有しキーが押下
されたときにはメイクデータを出力しキーが離上された
ときにはブレイクデータを出力し、コントローラがキー
ボード上のキーからの出力データに基づくキーコードの
情報を格納し4つのカーソル移動キーの中で逆方向とな
らない2つのカーソル移動キーの押下の順序と時間差と
に基づき表示装置上のカーソルの移動を制御する。
In the cursor movement key control system of the present invention, the keyboard has four cursor movement keys for instructing the movement of the cursor on the display device in the four directions of up, down, left and right, and when the key is pressed, the make data is output and the key is released. When the cursor is moved up, the break data is output, and the controller stores the information of the key code based on the output data from the keys on the keyboard, and the order of pressing the two cursor movement keys which are not reverse directions among the four cursor movement keys. And controlling the movement of the cursor on the display device based on the time difference.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は、本発明のカーソル移動キー制御方式の一実
施例の構成を示すブロック図である。本実施例のカーソ
ル移動キー制御方式は、カーソル移動キー10を有するキ
ーボード1と、キーボード制御プログラム部3,CRT制御
部4および上位アプリケーションプログラム5(CRT6上
のカーソル60の移動の制御だけではなくデータ編集等の
他の処理も行う)を有するコントローラ2と、カーソル
60が表示されるCRT6とから構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of a cursor movement key control system of the present invention. The cursor movement key control system of the present embodiment has a keyboard 1 having a cursor movement key 10, a keyboard control program unit 3, a CRT control unit 4, and an upper application program 5 (not only control of movement of the cursor 60 on the CRT 6 but also data control). Controller 2 (which also performs other processing such as editing), and a cursor
It consists of 60 and a CRT 6 displayed.

第2図を参照すると、利用者によりキーボード1上の
キーの押下が行われたときのキーボード1からの出力デ
ータはメイクデータと呼ばれ、キーの離上(押下されて
いるキーが離されてキーが上昇した状態に復元されるこ
と。以下同様)が行われたときのキーボード1からの出
力データはブレイクデータと呼ばれる。
Referring to FIG. 2, the output data from the keyboard 1 when the user presses a key on the keyboard 1 is called make data, and the key is released (the pressed key is released). The output data from the keyboard 1 when the key is restored to the raised state (the same applies hereinafter) is called break data.

第3図を参照すると、カーソル移動キー10(以下、4
つのカーソル移動キー10のそれぞれを特定する場合に
は、カーソルの移動の方向を示すキートップの図に基づ
き「キー↑」,「キー↓」,「キー→」および「キー
←」と示す)に対するメイクデータとブレイクデータと
は、メイクデータの場合には先頭のビットが「0」で示
されブレイクデータの場合には先頭のビットが「1」で
示された8ビットデータが割り当てられている。
Referring to FIG. 3, the cursor movement key 10 (hereinafter, 4
In order to specify each of the two cursor movement keys 10, “key ↑”, “key ↓”, “key →” and “key ←” are indicated on the basis of the figure of the key top showing the direction of cursor movement. As the make data and break data, 8-bit data in which the first bit is indicated by "0" in the case of make data and the first bit is indicated by "1" in the case of break data is allocated.

第4図を参照すると、カーソル移動キー10のメイクデ
ータおよびブレイクデータは、図示するように16進数表
示で示すことができる。
Referring to FIG. 4, the make data and break data of the cursor movement key 10 can be shown in hexadecimal notation as shown.

第5図に示すように、キーボード1上の任意のキーに
よるメイクデータに基づく割込み(以下、メイク割込み
という)の発生からそのキーによるブレイクデータに基
づく割込み(以下、ブレイク割込みという)の発生まで
の経過時間tが、あらかじめ設定されている基準時間T
を越える場合、すなわち利用者が基準時間Tを越えてそ
のキーの押下を続ける場合には、キーボード制御プログ
ラム部3によりそのキーの連続した押下を示す情報が上
位アプリケーションプログラム5に渡される。
As shown in FIG. 5, from generation of an interrupt based on make data (hereinafter referred to as make interrupt) by an arbitrary key on the keyboard 1 to generation of an interrupt based on break data (hereinafter referred to as break interrupt) by the key. Elapsed time t is a preset reference time T
When the user exceeds the reference time T, that is, when the user continues to press the key for more than the reference time T, the keyboard control program unit 3 transfers information indicating the continuous press of the key to the upper application program 5.

第6図(a)に示すように、利用者によりキー↓が押
下されメイク割込みが発生してから基準時間T以内の経
過時間tの経過後にキー→が押下されメイク割込みが発
生した場合には、キーボード制御プログラム部3により
上位アプリケーションプログラム5に対してキー↓およ
びキー→を示すキーコードが交互に連続して出力され
る。
As shown in FIG. 6 (a), when the user presses the key ↓ to generate a make interrupt and the key → is pressed to generate a make interrupt after the elapsed time t within the reference time T has elapsed, The keyboard control program section 3 alternately outputs the key codes indicating the key ↓ and the key → to the upper application program 5.

上位アプリケーションプログラム5ではこれらのキー
コードに基づきCRT制御部4に対してCRT6上のカーソル6
0の移動後の位置を指示するコマンドが出力され、CRT制
御部4ではこのコマンドに基づきCRT6上のカーソル60が
右下45度の方向に移動される(第8図(a)参照)。
In the upper application program 5, the cursor 6 on the CRT 6 is sent to the CRT controller 4 based on these key codes.
A command indicating the position after the movement of 0 is output, and the CRT control unit 4 moves the cursor 60 on the CRT 6 in the lower right direction by 45 degrees based on this command (see FIG. 8A).

第6図(b)および(c)に示すように、利用者によ
りキー↓が押下されメイク割込みが発生してから基準時
間Tを越える経過時間tの経過後にキー→が押下されメ
イク割込みが発生した場合には、あらかじめキーボード
制御プログラム部3に対して利用者から指示されている
比較時間τと経過時間tとの比率に基づいて、キーボー
ド制御プログラム部3により上位アプリケーションプロ
グラム5に対して複数のキー↓のキーコード毎に1つの
キー→のキーコードが挿入されて出力される。
As shown in FIGS. 6 (b) and 6 (c), after the user presses the key ↓ to generate the make interrupt, the key → is pressed to generate the make interrupt after the elapsed time t exceeding the reference time T has elapsed. In such a case, the keyboard control program unit 3 makes a plurality of commands for the upper application program 5 based on the ratio of the comparison time τ and the elapsed time t, which is instructed by the user to the keyboard control program unit 3 in advance. For each key code of key ↓, one key → key code is inserted and output.

例えば、第6図(b)に示すように[t/τ]=1
([ ]はガウス記号を示す)の場合には、キーボード
制御プログラム部3は2つのキー↓のキーコード毎に1
つのキー→のキーコードを挿入して上位アプリケーショ
ンプログラム5に対して出力する(第7図(a)参
照)。
For example, as shown in FIG. 6 (b), [t / τ] = 1
In the case of ([] indicates a Gauss symbol), the keyboard control program section 3 outputs 1 for each key code of two keys ↓.
The key code of one key → is inserted and output to the upper application program 5 (see FIG. 7 (a)).

上位アプリケーションプログラム5ではこれらのキー
コードに基づきCRT制御部4に対してコマンドが出力さ
れ、CRT制御部4ではこのコマンドに基づきCRT6上のカ
ーソル60が右下約27度(tan-1(1/2))の方向に移動さ
れる(第8図(b)参照)。
The upper application program 5 outputs a command to the CRT control unit 4 based on these key codes, and the CRT control unit 4 moves the cursor 60 on the CRT 6 to approximately 27 degrees (tan -1 (1 / 2)) is moved (see FIG. 8 (b)).

また、第6図(c)に示すように[t/τ]=2の場合
には、キーボード制御プログラム部3は3つのキー↓の
キーコード毎に1つのキー→のキーコードを挿入して上
位アプリケーションプログラム5に対して出力する(第
7図(b)参照)。
Further, as shown in FIG. 6 (c), when [t / τ] = 2, the keyboard control program unit 3 inserts one key → key code for every three key ↓ key codes. It is output to the upper application program 5 (see FIG. 7 (b)).

上位アプリケーションプログラム5ではこれらのキー
コードに基づきCRT制御部4に対してコマンドが出力さ
れ、CRT制御部4ではこのコマンドに基づきCRT6上のカ
ーソル60が右下約18度(tan-1(1/3))の方向に移動さ
れる(第8図(c)参照)。
The upper application program 5 outputs a command to the CRT control unit 4 based on these key codes, and the CRT control unit 4 moves the cursor 60 on the CRT 6 to about 18 degrees lower right (tan -1 (1 / 3)) is moved (see FIG. 8 (c)).

上述の説明においてはキー↓とキー→との組合せにつ
いて述べたが、他のカーソル移動キー10の組合せにおい
ても同様の処理が行われる。ただし、キー↓とキー↑と
の組合せおよびキー→とキー←との組合せにおいては合
成する意味を持たないので、「矛盾する組合せ」として
扱われ上述のような処理は行われない。
In the above description, the combination of the key ↓ and the key → was described, but the same processing is performed for other combinations of the cursor movement keys 10. However, since the combination of the key ↓ and the key ↑ and the combination of the key → and the key ← have no meaning to be combined, they are treated as an “inconsistent combination” and the above processing is not performed.

第9図を参照すると、コントローラ2中のキーボード
制御プログラム部3の処理は、割込み種類判定ステップ
11と、キー種類判定ステップ12と、メイク中カーソル移
動キー存在判定ステップ13と、メイク割込み判定ステッ
プ14と、矛盾組合せ判定ステップ15と、経過時間記憶ス
テップ16と、2回目カーソル移動キー記憶ステップ17
と、キー出力カウンタ0設定ステップ18と、キーコード
出力ステップ19と、キー出力カウンタ1加算ステップ20
と、メイク割込み判定ステップ21と、タイマカウンタ0
設定ステップ22と、カーソル移動キー種類記憶ステップ
23と、メイク中カーソル移動キー存在判定ステップ24
と、基準時間T経過判定ステップ25と、マルチタッチ判
定ステップ26と、キー出力カウンタ値判定ステップ27
と、メイク中カーソル移動キー記憶クリアステップ28と
からなる。
Referring to FIG. 9, the processing of the keyboard control program unit 3 in the controller 2 is performed by the interrupt type determination step.
11, key type determination step 12, make-up cursor movement key presence determination step 13, make interruption determination step 14, inconsistent combination determination step 15, elapsed time storage step 16, second cursor movement key storage step 17
, Key output counter 0 setting step 18, key code output step 19, key output counter 1 adding step 20
And make interrupt determination step 21, and timer counter 0
Setting step 22 and cursor movement key type storage step
23, and step 24 for determining whether the cursor movement key during makeup is present
, Reference time T elapsed determination step 25, multi-touch determination step 26, key output counter value determination step 27
And a cursor moving key memory clear step 28 during makeup.

次に、このように構成された本実施例のカーソル移動
キー制御方式の動作について説明する。
Next, the operation of the cursor movement key control system of the present embodiment having such a configuration will be described.

コントローラ2において割込みが発生すると、割込み
の種類を切り分けるために、その割込みがキーボード1
の打鍵(キーの押下および離上)に基づく割込みである
かコントローラ2中のタイマ(図示せず)からの割込み
(定期的に発生する割込み。以下、タイマ割込みとい
う)であるかがキーボード制御プログラム部3により判
定される(ステップ11)。
When an interrupt occurs in the controller 2, the interrupt is sent to the keyboard 1 in order to distinguish the type of interrupt.
Whether a keyboard control program is an interrupt based on keystrokes (key press and release) or an interrupt from a timer (not shown) in the controller 2 (periodically generated interrupt; hereinafter referred to as timer interrupt) The determination is made by the unit 3 (step 11).

この判定でキーボード1の打鍵に基づく割込みである
場合には、さらにカーソル移動キー10の打鍵に基づく割
込みであるか否かが判定される(ステップ12)。
If it is determined that the interrupt is based on the keystroke of the keyboard 1, it is further determined whether the interrupt is based on the keystroke of the cursor movement key 10 (step 12).

この判定でカーソル移動キー10の打鍵に基づく割込み
である場合には、その割込みが発生した時点でメイク中
のカーソル移動キー10(利用者により押下されているカ
ーソル移動キー10)が存在するか否かが判定される(ス
テップ13)。
If the determination is that the interrupt is based on the keystroke of the cursor movement key 10, whether or not there is the cursor movement key 10 (cursor movement key 10 pressed by the user) being made at the time of the interruption. It is determined whether or not (step 13).

この判定でメイク中のカーソル移動キー10が存在する
場合には、今回の割込みがメイク割込みであるかブレイ
ク割込みであるかが判定される(ステップ14)。
If the cursor movement key 10 during make is present in this determination, it is determined whether the current interrupt is a make interrupt or a break interrupt (step 14).

この判定でメイク割込みである場合には、そのメイク
割込みの原因となったカーソル移動キー10の押下がすで
にメイク中のカーソル移動キー10の押下と矛盾のない組
合せであるか否かが判定される(ステップ15)。
If it is a make interrupt in this determination, it is determined whether or not the pressing of the cursor movement key 10 causing the make interruption is a combination consistent with the pressing of the cursor movement key 10 which is already being made. (Step 15).

この判定で矛盾のない組合せである場合には、すでに
メイク中のカーソル移動キー10についてのメイク割込み
の発生から今回のメイク割込みの発生までの経過時間t
がコントローラ2中のメモリ(図示せず)にキーボード
制御プログラム部3により記憶され(ステップ16)、さ
らに今回の(すなわち、2回目の)カーソル移動キー10
のメイクデータがメモリに記憶される(ステップ17)。
If it is determined that there is no contradiction in this determination, the elapsed time t from the occurrence of the make interrupt for the cursor movement key 10 that is already being made to the occurrence of the current make interrupt is t.
Is stored in the memory (not shown) in the controller 2 by the keyboard control program unit 3 (step 16), and the cursor movement key 10 of this time (that is, the second time) is further stored.
Make data of is stored in the memory (step 17).

次に、2回目のメイク割込みの発生を契機とする2つ
のカーソル移動キー10に基づく情報の出力の割合を決定
するコントローラ2中のキー出力カウンタ(図示せず)
が0に設定され(ステップ18)、2回目に押下されたカ
ーソル移動キー10のキーコードが上位アプリケーション
プログラム5に出力され(ステップ19)、キー出力カウ
ンタに1が加算され(ステップ20)、キーボード制御プ
ログラム部3の処理が終了する。
Next, a key output counter (not shown) in the controller 2 for determining the ratio of information output based on the two cursor movement keys 10 triggered by the second make interrupt occurrence.
Is set to 0 (step 18), the key code of the cursor movement key 10 pressed the second time is output to the upper application program 5 (step 19), 1 is added to the key output counter (step 20), and the keyboard The processing of the control program unit 3 ends.

ステップ15の判定で矛盾する組合せである場合には、
メイク中のカーソル移動キー10のメイクデータの記憶が
クリアされ(ステップ28)、キーボード制御プログラム
部3の処理が終了する。
If there is a conflicting combination in the judgment of step 15,
The memory of the make-up data of the cursor movement key 10 during make-up is cleared (step 28), and the processing of the keyboard control program section 3 is finished.

ステップ14の判定でブレイク割込みである場合には、
メイク中のカーソル移動キー10のブレイク割込みである
ことを示しているので、そのカーソル移動キー10のメイ
クデータの記憶がクリアされ(ステップ28)、キーボー
ド制御プログラム部3の処理が終了する。
If the judgment in step 14 is a break interrupt,
Since this indicates a break interruption of the cursor movement key 10 during make-up, the memory of the make data of the cursor movement key 10 is cleared (step 28), and the processing of the keyboard control program section 3 ends.

ステップ13の判定でメイク中のカーソル移動キー10が
存在しない場合には、今回の割込みがメイク割込みであ
るかブレイク割込みであるかが判定される(ステップ2
1)。
If the cursor movement key 10 during make-up does not exist in the determination in step 13, it is determined whether the current interrupt is a make interrupt or a break interrupt (step 2
1).

この判定でメイク割込みである場合には、コントロー
ラ2中のタイマカウンタ(図示せず)が0に設定されて
経過時間tを計測するためのコントローラ2中のタイマ
(図示せず)の0からの再スタートが行われる(ステッ
プ22)。
If the determination is a make interrupt, the timer counter (not shown) in the controller 2 is set to 0, and the timer (not shown) in the controller 2 for measuring the elapsed time t from 0 is set. A restart is performed (step 22).

次に、メイク割込みの原因となったカーソル移動キー
10の種類(すなわち、それぞれのカーソル移動キー10の
メイクデータ)がコントローラ2中のメモリに記憶され
(ステップ23)、キー出力カウンタが0に設定され(ス
テップ18)。このカーソル移動キー10のキーコードが上
位アプリケーションプログラム5に出力され(ステップ
19)、キー出力カウンタに1が加算され(ステップ2
0)、キーボード制御プログラム部3の処理が終了す
る。
Next, the cursor movement key that caused the make interrupt
Ten types (that is, make data of each cursor movement key 10) are stored in the memory in the controller 2 (step 23), and the key output counter is set to 0 (step 18). The key code of the cursor movement key 10 is output to the upper application program 5 (step
19), 1 is added to the key output counter (step 2
0), the processing of the keyboard control program unit 3 ends.

ステップ21の判定でブレイク割込みである場合は本来
存在しないはずであるが、ハードウェア的な誤動作等で
その状態が生じている場合には、誤ってメイク中となっ
ているカーソル移動キー10のメイクデータの記憶がクリ
アされ(ステップ28)、キーボード制御ブログラム部3
の処理が終了する。
If it is a break interrupt in the judgment of step 21, it should not exist originally, but if that state occurs due to a hardware malfunction, etc., the cursor movement key 10 The memory of the data is cleared (step 28), and the keyboard control program section 3
Processing ends.

ステップ12の判定でカーソル移動キー10の打鍵に基づ
く割込みではなくキーボード1上の別のキーの打鍵に基
づく割込みである場合には、そのキーに基づく処理に制
御が移る。
If it is determined in step 12 that the interrupt is not based on the keystroke of the cursor movement key 10 but is based on the keystroke of another key on the keyboard 1, control is transferred to the process based on that key.

ステップ11の判定でタイマ割込みである場合には、そ
のタイマ割込みが発生した時点でメイク中のカーソル移
動キー10が存在するか否かが判定される(ステップ2
4)。
If the determination in step 11 is a timer interrupt, it is determined whether or not the cursor movement key 10 being made exists at the time when the timer interrupt occurs (step 2
Four).

この判定でメイク中のカーソル移動キー10が存在しな
い場合には、そのままキーボード制御プログラム部3の
処理が終了する。
If the cursor movement key 10 which is being made does not exist in this determination, the process of the keyboard control program section 3 is finished as it is.

ステップ24の判定でメイク中のカーソル移動キー10が
存在する場合には、そのカーソル移動キー10についての
メイク割込みが発生してからの経過時間tが基準時間t
を経過しているか否かが判定される(ステップ25)。
If it is determined in step 24 that the cursor movement key 10 that is being made exists, the elapsed time t from the generation of the make interrupt for the cursor movement key 10 is the reference time t.
It is determined whether or not has passed (step 25).

この判定で経過時間tが基準時間Tを経過していない
場合には、キーコードの出力を行う必要がないので、そ
のままキーボード制御プログラム部3の処理が終了す
る。
If the elapsed time t does not exceed the reference time T in this determination, there is no need to output the key code, so the processing of the keyboard control program section 3 ends.

ステップ25の判定で経過時間tが基準時間Tを経過し
ている場合には、タイマ割込みが発生した時点で矛盾の
ない2つのカーソル移動キー10が押下されている状態
(以下、マルチタッチという)であるか否かが判定され
る(ステップ26)。
If the elapsed time t has exceeded the reference time T as determined in step 25, two consistent cursor movement keys 10 are pressed at the time when the timer interrupt occurs (hereinafter referred to as multi-touch). Is determined (step 26).

この判定でマルチタッチではなく1つのカーソル移動
キー10のみが押下されている状態(マルチタッチに対し
てシングルタッチという)である場合には、キー出力カ
ウンタが0とされ(ステップ18)、シングルタッチがさ
れているカーソル移動キー10のキーコードが上位アプリ
ケーションプログラム5に出力され(ステップ19)、キ
ー出力カウンタに1が加算され(ステップ20)、キーボ
ード制御プログラム部3の処理が終了する。
If it is determined in this determination that only one cursor movement key 10 is being pressed instead of multi-touch (called multi-touch as opposed to multi-touch), the key output counter is set to 0 (step 18) and single-touch is performed. The key code of the cursor movement key 10 which is marked is output to the upper application program 5 (step 19), 1 is added to the key output counter (step 20), and the processing of the keyboard control program section 3 is completed.

ステップ26の判定でマルチタッチである場合には、キ
ー出力カウンタの値が[t/τ]+1の値よりも大きいか
否かが判定される(ステップ27)。
If multi-touch is determined in step 26, it is determined whether the value of the key output counter is larger than the value of [t / τ] +1 (step 27).

この判定でキー出力カウンタの値が[t/τ]+1の値
よりも大きい場合には、キー出力カウンタの値が0にさ
れ(ステップ18)、マルチタッチにおける2回目に押下
されたカーソル移動キー10のキーコードが上位アプリケ
ーションプログラム5に出力され(ステップ19)、キー
出力カウンタに1が加算され(ステップ20)、キーボー
ド制御プログラム部3の処理が終了する。
If the value of the key output counter is larger than the value of [t / τ] +1 in this determination, the value of the key output counter is set to 0 (step 18), and the cursor movement key pressed the second time in the multi-touch. The key code of 10 is output to the upper application program 5 (step 19), 1 is added to the key output counter (step 20), and the processing of the keyboard control program section 3 is completed.

ステップ27の判定でキー出力カウンタの値が[t/τ]
+1の値よりも大きくない場合には、マルチタッチにお
ける1回目に押下されたカーソル移動キー10のキーコー
ドが上位アプリケーションプログラム5に出力され(ス
テップ19)、キー出力カウンタに1が加算され(ステッ
プ20)、キーボード制御プログラム部3の処理が終了す
る。
The value of the key output counter is [t / τ] in the judgment in step 27.
If it is not larger than the value of +1, the key code of the cursor movement key 10 pressed the first time in the multi-touch is output to the upper application program 5 (step 19), and 1 is added to the key output counter (step 19). 20) and the processing of the keyboard control program section 3 ends.

カーソル移動キー10のキーコードを受け取った上位ア
プリケーションプログラム5ではCRT制御部4に対して
カーソル移動キー10のキーコードに対応するカーソルの
移動方向を指示するコマンドが渡され、CRT制御部4で
はそのコマンドに基づきCRT6上のカーソル60の移動が制
御される。
The upper application program 5 that has received the key code of the cursor movement key 10 passes a command for instructing the moving direction of the cursor corresponding to the key code of the cursor movement key 10 to the CRT control unit 4, and the CRT control unit 4 receives the command. The movement of the cursor 60 on the CRT 6 is controlled based on the command.

上述の動作を第6図(c)に示すようなカーソル移動
キーの押下が行われる場合([t/τ]=2の場合)を例
にとり具体的に示すと、まず1回目に押下されたキー↓
のメイクデータとして01H(第4図参照)がキーボード
1から出力されてこれに基づきメイク割込みが発生し、
第9図においてステップ11−12−13−21−22−23−18−
19−20の順に処理および判定が行われ、キー↓の押下に
基づく情報がキーボード制御プログラム部3から上位ア
プリケーションプログラム5を介してCRT制御部4に渡
され、CRT制御部4の制御によりCRT6上のカーソル60が
下方向に1行分移動される。
Taking the above operation as an example in which the cursor movement key is pressed as shown in FIG. 6 (c) (when [t / τ] = 2), it is first pressed. Key ↓
01H (see FIG. 4) is output from the keyboard 1 as the make data of and a make interrupt is generated based on this.
In FIG. 9, steps 11-12-13-21-22-22-23-18-
The processing and determination are performed in the order of 19-20, and the information based on the pressing of the key ↓ is passed from the keyboard control program unit 3 to the CRT control unit 4 via the upper application program 5, and the CRT 6 is controlled by the CRT control unit 4. The cursor 60 of is moved downward by one line.

ここで、2回目に押下されるキー→の押下の前で基準
時間Tの経過後に2回のタイマ割込みの発生があるもの
と仮定すると、これらのタイマ割込みの発生時には第9
図においてステップ11−24−25−26−18−19−20の順に
処理および判定が行われ、キー↓の連続した押下に基づ
くリピート情報がキーボード制御プログラム部3から上
位アプリケーションプログラム5を介してCRT制御部4
に渡され、CRT制御部4の制御によりCRT6上のカーソル6
0が下方向にそれぞれ1行分移動される。このようにし
て合計3回のキー↓の押下に基づく情報がキーボード制
御プログラム部3から出力される。
If it is assumed that two timer interrupts are generated after the reference time T has elapsed before the second key is pressed, the 9th timer interrupt is generated.
In the figure, processing and determination are performed in the order of steps 11-24-25-26-18-18-19-20, and repeat information based on successive depressions of the key ↓ is sent from the keyboard control program unit 3 via the upper application program 5 to the CRT. Control unit 4
To the cursor 6 on the CRT 6 under the control of the CRT controller 4.
0 is moved downward by one line each. In this way, the information based on the key ↓ being pressed three times in total is output from the keyboard control program unit 3.

キー↓が押下されてから3回目のタイマ割込みの発生
の前に2回目のキー→の押下が行われた場合には、メイ
クデータとして02H(第4図参照)がキーボード1から
出力されてこれに基づきメイク割込みが発生し、第9図
においてステップ11−12−13−14−15−16−17−18−19
−20の順に処理および判定が行われ、キー→の押下に基
づく情報がキーボード制御プログラム部3から上位アプ
リケーションプログラム5を介してCRT制御部4に渡さ
れ、CRT制御部4の制御によりCRT6上のカーソル60が右
方向に1桁分移動される(このときにキー出力カウンタ
の値は1にされる)。
If the second key is pressed before the third timer interrupt occurs after the key ↓ is pressed, 02H (see Fig. 4) is output as make data from the keyboard 1 and A make interrupt is generated based on the above, and steps 11-12-13-14-15-15-16-17-18-19 in FIG. 9 are generated.
The processing and determination are performed in the order of −20, and the information based on the press of the key → is passed from the keyboard control program unit 3 to the CRT control unit 4 via the host application program 5, and the CRT control unit 4 controls the CRT 6 to operate. The cursor 60 is moved rightward by one digit (at this time, the value of the key output counter is set to 1).

キー↓が押下されてから3回目のタイマ割込みの発生
に対しては、第9図においてステップ11−24−25−26−
27−19−20の順に処理および判定が行われ、キー出力カ
ウンタの値は2になり、キー↓に基づく情報が出力され
る。
For the third timer interrupt occurrence after the key ↓ is pressed, in step 11-24-25-26- in FIG.
The processing and determination are performed in the order of 27-19-20, the value of the key output counter becomes 2, and the information based on the key ↓ is output.

キー↓が押下されてから4回目のタイマ割込みの発生
に対しても、第9図においてステップ11−24−25−26−
27−19−20の順に処理および判定が行われ、キー出力カ
ウンタの値は3になり、キー↓に基づく情報が出力され
る。
Even when the fourth timer interrupt occurs after the key ↓ is pressed, the steps 11-24-25-26- in FIG. 9 are performed.
The processing and determination are performed in the order of 27-19-20, the value of the key output counter becomes 3, and the information based on the key ↓ is output.

さらに、キー↓が押下されてから5回目のタイマ割込
みの発生に対しても、マルチタッチであるかぎり同様の
処理が行われ、キー出力カウンタの値は4になる。
Further, the same processing is performed even when the fifth timer interrupt is generated after the key ↓ is pressed, and the value of the key output counter becomes 4 as long as the multi-touch is performed.

キー↓が押下されてから6回目のタイマ割込みの発生
に対しては、第9図においてステップ11−24−25−26−
27−18−19−20の順に処理および判定が行われ(キー出
力カウンタの値が[t/τ]+1の3よりも大きくなって
いる)、キー→に基づく情報がキーボード制御プログラ
ム部3から上位アプリケーションプログラム5を介して
CRT制御部4に出力され、CRT制御部4の制御によりCRT6
上のカーソル60が右方向に1桁分移動される。
For the sixth timer interrupt occurrence after the key ↓ is pressed, in step 11-24-25-26- in FIG.
27-18-19-20 are sequentially processed and determined (the value of the key output counter is larger than 3 of [t / τ] +1), and the information based on the key → is input from the keyboard control program section 3. Via upper application program 5
It is output to the CRT control unit 4, and CRT6 is controlled by the CRT control unit 4.
The upper cursor 60 is moved to the right by one digit.

キー↓とキー→とのマルチタッチになってからのこの
ような出力の態様は第7図(b)に示す出力の態様に相
当し、CRT6上のカーソル60は第8図(c)に示すように
移動される。
The mode of such output after the multi-touch of the key ↓ and the key → corresponds to the mode of output shown in FIG. 7 (b), and the cursor 60 on the CRT 6 is shown in FIG. 8 (c). To be moved.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明は、キーボード上のカーソ
ル移動キーの押下の態様、すなわち上下方向と左右方向
との2つのカーソル移動キーの押下の組合せと押下の時
間差とに基づきコントローラの制御によって表示装置上
のカーソルの移動の方向を自在に制御することにより、
日本語ワードプロセッサ等のデータ入力装置の操作性を
向上することができるという効果がある。
As described above, according to the present invention, the display device is controlled by the controller based on the mode of pressing the cursor moving key on the keyboard, that is, the combination of pressing the two cursor moving keys in the up-down direction and the left-right direction and the time difference between the pressing. By freely controlling the direction of movement of the cursor above,
There is an effect that the operability of a data input device such as a Japanese word processor can be improved.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の一実施例の構成を示すブロック図、 第2図は第1図中のキーボードからコントローラに出力
されるデータの態様を示す図、 第3図は第1図中のカーソル移動キーのメイクデータお
よびブレイクデータに対応する8ビットデータを示す
図、 第4図は第3図に示す8ビットデータの16進数表示を示
す図、 第5図は第1図中のキーボード上のキーの押下によるメ
イクデータと同一のキーの離上によるブレイクデータと
の間の経過時間と基準時間との関係の一例を示す図、 第6図(a)は経過時間が基準時間よりも小さい場合の
2つのカーソル移動キーがマルチタッチされている態様
の一例を示す図、 第6図(b)は経過時間が基準時間よりも大きくて比較
時間の1〜2倍である場合の2つのカーソル移動キーが
マルチタッチされている態様の一例を示す図、 第6図(c)は経過時間が基準時間よりも大きくて比較
時間の2〜3倍である場合の2つのカーソル移動キーが
マルチタッチされている態様の一例を示す図、 第7図(a)は第6図(b)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のキーボ
ード制御プログラム部から上位アプリケーションプログ
ラムにキーコードが出力されるカーソル移動キーの順序
を示す図、 第7図(b)は第6図(c)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のキーボ
ード制御プログラム部から上位アプリケーションプログ
ラムにキーコードが出力されるカーソル移動キーの順序
を示す図、 第8図(a)は第6図(a)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のCRT上
のカーソルの移動の態様を示す図、 第8図(b)は第6図(b)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のCRT上
のカーソルの移動の態様を示す図、 第8図(c)は第6図(c)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のCRT上
のカーソルの移動の態様を示す図、 第9図は第1図中のキーボード制御プログラム部の処理
を示す流れ図である。 図において、 1……キーボード、 2……コントローラ、 3……キーボード制御プログラム部、 4……CRT制御部、 5……上位アプリケーションプログラム、 6……CRT、 10……カーソル移動キー、 60……カーソルである。
1 is a block diagram showing a configuration of an embodiment of the present invention, FIG. 2 is a diagram showing a mode of data output from a keyboard in FIG. 1 to a controller, and FIG. 3 is a cursor in FIG. FIG. 4 is a diagram showing 8-bit data corresponding to make-up data and break data of the move key, FIG. 4 is a diagram showing hexadecimal representation of 8-bit data shown in FIG. 3, and FIG. 5 is a diagram on the keyboard in FIG. FIG. 6A is a diagram showing an example of the relationship between the reference time and the elapsed time between the make data by pressing a key and the break data by releasing the same key. FIG. 6A shows the case where the elapsed time is smaller than the reference time. 6B shows an example of a mode in which the two cursor movement keys are multi-touched. FIG. 6B shows two cursor movements when the elapsed time is longer than the reference time and is 1 to 2 times the comparison time. The keys are multi-touch FIG. 6 (c) is an example of a mode in which two cursor movement keys are multi-touched when the elapsed time is longer than the reference time and is 2 to 3 times the comparison time. FIG. 7 (a) is a key code output from the keyboard control program part in FIG. 1 to the upper application program when the cursor movement keys are multi-touched as shown in FIG. 6 (b). FIG. 7 (b) is a diagram showing the order of the cursor movement keys, and FIG. 7 (b) shows the order from the keyboard control program part in FIG. 1 when the cursor movement keys are multi-touched. FIG. 8 is a diagram showing the sequence of cursor movement keys whose key codes are output to the application program. FIG. 8 (a) shows the cursor movement keys being multi-touched as shown in FIG. 6 (a). FIG. 8 is a diagram showing the manner of movement of the cursor on the CRT in FIG. 1, and FIG. 8 (b) is the first diagram when the cursor movement keys are multi-touched as shown in FIG. 6 (b). The figure which shows the mode of movement of the cursor on the CRT in the figure, and FIG. 8 (c) is on the CRT in FIG. 1 when the cursor movement keys are multi-touched as shown in FIG. 6 (c). And FIG. 9 is a flow chart showing the processing of the keyboard control program section in FIG. In the figure, 1 ... keyboard, 2 ... controller, 3 ... keyboard control program section, 4 ... CRT control section, 5 ... upper application program, 6 ... CRT, 10 ... cursor movement key, 60 ... It is the cursor.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】上下左右4方向の表示装置上のカーソルの
移動をそれぞれ指示する4つのカーソル移動キーを有し
キーが押下されたときにはメイクデータを出力しキーが
離上されたときにはブレイクデータを出力するキーボー
ドと、 このキーボード上のキーからの出力データに基づくキー
コードの情報を格納し4つのカーソル移動キーの中で逆
方向とならない2つのカーソル移動キーの押下の順序と
時間差とに基づき前記表示装置上のカーソルの移動を制
御するコントローラと、 を有することを特徴とするカーソル移動キー制御方式。
1. There are four cursor movement keys for instructing movement of a cursor on a display device in four directions of up, down, left and right, and make data is output when the key is pressed, and break data is output when the key is released. Based on the keyboard to output and the key code information based on the output data from the keys on this keyboard, which is based on the pressing order and the time difference of the two cursor movement keys that are not in the opposite direction among the four cursor movement keys, A cursor movement key control method comprising: a controller that controls movement of a cursor on a display device.
JP62097905A 1987-04-21 1987-04-21 Cursor movement key control system Expired - Lifetime JP2536517B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62097905A JP2536517B2 (en) 1987-04-21 1987-04-21 Cursor movement key control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62097905A JP2536517B2 (en) 1987-04-21 1987-04-21 Cursor movement key control system

Publications (2)

Publication Number Publication Date
JPS63263515A JPS63263515A (en) 1988-10-31
JP2536517B2 true JP2536517B2 (en) 1996-09-18

Family

ID=14204738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62097905A Expired - Lifetime JP2536517B2 (en) 1987-04-21 1987-04-21 Cursor movement key control system

Country Status (1)

Country Link
JP (1) JP2536517B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02226191A (en) * 1989-02-27 1990-09-07 Nec Corp Data input device
JPH06161629A (en) * 1992-11-18 1994-06-10 Pfu Ltd Keyboard power source control system
KR101036992B1 (en) 2010-10-29 2011-05-25 한화에스앤씨주식회사 Apparatus for processing key input using interrupt

Also Published As

Publication number Publication date
JPS63263515A (en) 1988-10-31

Similar Documents

Publication Publication Date Title
US4821029A (en) Touch screen computer-operated video display process and apparatus
JPH042964B2 (en)
JPH0588842A (en) Icon displaying system
JP6229473B2 (en) Display device and program
JPH05165936A (en) Method for generating color image on screen of data processing device and data processing device
JP4280329B2 (en) Coordinate input device
JP2536517B2 (en) Cursor movement key control system
US5973622A (en) Keyboard with a two-dimensional actuator for generating direction signals
JP2637440B2 (en) Cursor control method
JP2851834B2 (en) Information processing device
JPH0146888B2 (en)
JPS62150477A (en) Display device
JP2635656B2 (en) Display control method
JP3533758B2 (en) Scroll control device and display device
JP2738851B2 (en) Input data processing display method using multiple cursors
JPH0744308A (en) Word processor
CN108733224B (en) Numerical controller
JP2000112657A (en) Circuit for preventing erroneous operation of pointing device
JPH09265374A (en) Menu selection processing method
JPH03129513A (en) Function selecting system
JPH07121299A (en) Pen computer device
JPS63317817A (en) Keyboard control system
JP2002123350A (en) Input system by pointing device and character input system by the same system
JPH04205219A (en) Pointing device controller
JPH07199900A (en) Window system