JPS63263515A - Cursor mobile key control system - Google Patents

Cursor mobile key control system

Info

Publication number
JPS63263515A
JPS63263515A JP62097905A JP9790587A JPS63263515A JP S63263515 A JPS63263515 A JP S63263515A JP 62097905 A JP62097905 A JP 62097905A JP 9790587 A JP9790587 A JP 9790587A JP S63263515 A JPS63263515 A JP S63263515A
Authority
JP
Japan
Prior art keywords
key
cursor
keys
keyboard
cursor movement
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.)
Granted
Application number
JP62097905A
Other languages
Japanese (ja)
Other versions
JP2536517B2 (en
Inventor
Shigeki Kato
茂樹 加藤
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
NEC Corp
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 NEC Corp filed Critical NEC Corp
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)

Abstract

PURPOSE:To improve the operability of a data input device such as a Japanese language word processor by freely controlling the moving direction of a cursor on a display device by a controller based on the combination and the time difference of depression between two cursor vertical and horizontal move keys. CONSTITUTION:A keyboard 1 is provided with four cursor mobile keys 10 which instruct the movement of a cursor 60 in four; upward, downward, right, and left directions on a display device, and the make data is outputted at the time of depression of keys 10, and the break data is outputted at the time of release of keys 10. A controller 2 stores information of the key code based on output data from keys 10 on the keyboard 1 and controls movement of the cursor 60 on the display device based on the order and the time difference of depression between two cursor move keys 10 which do not indicate opposite directions out of four cursor move keys 10. Thus, the cursor is freely moved by a user to position the cursor to an arbitrary position on the display device, and the operability of a data input device with the keyboard input as the center such as a Japanese language word processor is improved.

Description

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

〔従来の技術〕[Conventional technology]

従来、この種のカーソル移動キー制御方式が適用される
データ入力装置のキーボードには、キー人力をハードウ
ェアで検知するハードセンス型のキーボードとソフトウ
ェアで検知するソフトセンス型のキーボードとが存在し
た。
Conventionally, keyboards for data input devices to which this type of cursor movement key control method is applied include hard-sense keyboards that detect human force on keys using hardware, and soft-sense keyboards that detect keystrokes using software.

ハードセンス型のキーボードにおけるカーソル移動キー
制御方式では、カーソル移動キーをハードウェア的にセ
ンスするのでカーソル移動キーが2つ同時に押下されて
も少しでも先に押下されたカーソル移動キーのキーコー
ドのみが出力されていた。また、ソフトセンス型のキー
ボードにおけるカーソル移動キーM御方式では、カーソ
ル移動キーをセンスする順番を交互に変えることによっ
てカーソル移動キーが2つ同時に押下され続けている場
合に各々のキーコードが順次出力されることによって縦
横4方向の他に斜めの方向を含む8方向のカーソル移動
が可能となっていたが、斜め45度以外の複雑なカーソ
ルの移動の制御を行うことはできなかった。
In the cursor movement key control method of a hard-sensing keyboard, the cursor movement keys are sensed by the hardware, so even if two cursor movement keys are pressed at the same time, only the key code of the cursor movement key that was pressed first is used. It was being output. In addition, in the cursor movement key M control method on a soft sense keyboard, by alternating the sensing order of the cursor movement keys, if two cursor movement keys are held down at the same time, each key code is output in sequence. This made it possible to move the cursor in eight directions, including diagonal directions in addition to the four vertical and horizontal directions, but it was not possible to control complex cursor movement other than at a 45-degree angle.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

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

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

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

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

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

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

〔実施例〕〔Example〕

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

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

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

第3図を参照すると、カーソル移動キー10(以下、4
つのカーソル移動キー10のそれぞれを特定する場合に
は、カーソルの移動の方向を示すキートップの図に基づ
き「キー↑」、「キー↓」、「キー→」および「キー−
」と示す)に対するメイクデータとブレイクデータとは
、メイクデータの場合には先頭のビットが「0」で示さ
れブレイクデータの場合には先頭のビットがrlJで示
された8ピントデータが割り当てられている。
Referring to FIG. 3, cursor movement keys 10 (hereinafter referred to as 4
When specifying each of the cursor movement keys 10, "Key ↑", "Key ↓", "Key →" and "Key -
The make data and break data for make data (indicated by ``0'') are assigned 8 pinto data in which the first bit is indicated by ``0'' in the case of make data, and 8 pinto data in which the first bit is indicated by rlJ in the case of break data. ing.

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

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

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

ン 上位アプリケーションプログラム5ではこれらのキーコ
ードに基づきCRT制御部4に対してCRTS上のカー
ソル60の移動後の位置を指示するコマンドが出力され
、CRT制御部4ではこのコマンドに基づきCRTS上
のカーソル60が右下45度の方向に移動される(第8
図(a)参照)。
Based on these key codes, the upper-level application program 5 outputs a command to the CRT control unit 4 to instruct the position of the cursor 60 on the CRTS, and the CRT control unit 4 moves the cursor 60 on the CRTS based on this command. 60 is moved to the lower right 45 degrees (8th
(See figure (a)).

第6図山)およびlc)に示すように、利用者によりキ
ー↓が押下されメイク割込みが発生してから基準時間T
を越える経過時間tの経過後にキー→が押下されメイク
割込みが発生した場合には、あらかじめキーボード制御
プログラム部3に対して利用者から指示されている比較
時間τと経過時間tとの比率に基づいて、キーボード制
御プログラム部3により上位アプリケーションプログラ
ム5に対して複数のキー↓のキーコード毎に1つのキー
→のキーコードが挿入されて出力される。
As shown in Figure 6) and lc), the reference time T after the user presses the ↓ key and a make interrupt occurs.
If the key → is pressed and a make interrupt occurs after an elapsed time t exceeding Then, the keyboard control program section 3 inserts and outputs one key code for each key ↓ to the upper application program 5.

例えば、第6図(blに示すように[1/τ]=1([
]はガウス記号を示す)の場合には、キーボード制御プ
ログラム部3は2つのキー↓のキーコード毎に1つのキ
ー→のキーコードを挿入して上位アプリケ−、:/gン
プログラム5に対して出力する(第7図(al参照)。
For example, as shown in FIG. 6 (bl), [1/τ]=1([
] indicates a Gauss symbol), the keyboard control program unit 3 inserts one key → key code for every two keys ↓ key code and sends it to the upper application program 5. (see Figure 7 (al)).

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

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

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

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

第9図を参照すると、コントローラ2中のキーボード制
御プログラム部3の処理は、割込み種類判定ステップ1
1と、キ一種類判定ステップ12と、メイク中カーソル
移動キー存在判定ステップ13と、メイク割込み判定ス
テップ14と、矛盾組合せ判定ステップ15と、経過時
間記憶ステップ16と、2回目カーソル移動キー記憶ス
テップ17と、キー出力カウンタO設定ステップ18と
、キーコード出カステップ19と、キー出力カウンタl
加算ステップ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 includes interrupt type determination step 1.
1, one type of key determination step 12, make cursor movement key existence determination step 13, make interrupt determination step 14, contradictory combination determination step 15, elapsed time storage step 16, and second cursor movement key storage step 17, key output counter O setting step 18, key code output step 19, key output counter l
an addition step 20, a make interrupt determination step 21, a timer counter 0 setting step 22, a step 23 for storing one type of cursor movement key, a step 24 for determining the existence of a cursor movement key during make, a step 25 for determining the elapse of the reference time T, The process includes a multi-touch determination step 26, a key output counter value determination step 27, and a make-up cursor movement key memory clear step 28.

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

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

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

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

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

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

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

次に、2回目のメイク割込みの発生を契機とする2つの
カーソル移動キー10に基づり情報の出力の割合を決定
す、るコントローラ2中のキー出力カウンタ(図示せず
)が0に設定され(ステップ1日)、2回目に押下され
たカーソル移動キー10のキーコードが上位アプリケー
ションプログラム5に出力され(ステップ19)、キー
出力カウンタに1が加算され(ステップ20)、キーボ
ード制御プログラム部3の処理が終了する。
Next, when the second make interrupt occurs, a key output counter (not shown) in the controller 2, which determines the output ratio of information based on the two cursor movement keys 10, is set to 0. (Step 1), the key code of the cursor movement key 10 pressed for 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 control program section 3 The process ends.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ここで、2回目に押下されるキー−の押下の前で基準時
間Tの経過後に2回のタイマ割込みの発生があるものと
仮定すると、これらのタイマ割込みの発生時には第9図
においてステップ11−24−25−26−18−19
−20の順に処理および判定が行われ、キー↓の連続し
た押下に基づくリピート情報がキーボード制御プログラ
ム部3から上位アプリケーションプログラム5を介して
CR’T制御部4に渡され、CRT制御部4の制御によ
りCRTe上のカーソル60が下方向にそれぞれ1行分
移動される。このようにして合計3回のキー↓の押下に
基づく情幸侵がキーボード制御プログラム部3から出力
される。
Here, assuming that two timer interrupts occur after the reference time T has elapsed before the second key is pressed, when these timer interrupts occur, step 11- in FIG. 24-25-26-18-19
Processing and determination are performed in the order of -20, and repeat information based on the successive presses of the ↓ key is passed from the keyboard control program section 3 to the CR'T control section 4 via the upper application program 5. The control moves the cursor 60 on the CRTe downward one line each. In this way, the keyboard control program section 3 outputs a sexual assault based on the pressing of the key ↓ a total of three times.

キー↓が押下されてから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 - key is pressed a second time after the ↓ key is pressed and before the third timer interrupt occurs, 02H (see Figure 4) is output from the keyboard 1 as make data. A make interrupt is generated based on the step 11-12-13-14-15-16 in FIG.
Processing and determination are performed in the order of -17-18-19-20, and information based on the press of the key is passed from the keyboard control program section 3 to the CRT control section 4 via the upper application program 5. Under the control of , the cursor 60 on the CRT 6 is moved one digit to the right (at this time, the value of the key output counter is set to 1).

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

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

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

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

キー↓とキー→とのマルチタッチになってからのこのよ
うな出力の態様は第7図〜)に示す出力の態様に相当し
、CRT6上のカーソル60は第8図(C1に示すよう
に移動される。
This kind of output mode after the key ↓ and key → becomes multi-touch corresponds to the output mode shown in FIGS. will be moved.

〔発明の効果〕〔Effect of the invention〕

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

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

第1図は本発明の一実施例の構成を示すブロック図、 第2図は第1図中のキーボードからコントローラに出力
されるデータのB様を示す図、第3図は第1図中のカー
ソル移動キーのメイクデータおよびブレイクデータに対
応する8ピントデータを示す図、 第4図は第3図に示す8ビツトデータの16進数表示を
示す図、 第5図は第1図中のキーボード上のキーの押下によるメ
イクデータと同一のキーの錦上によるブレイクデータと
の間の経過時間と基準時間との関係の一例を示す図、 第6図ta>は経過時間が基準時間よりも小さい場合の
2つのカーソル移動キーがマルチタッチされているa様
の一例を示す図、 第6図(blは経過時間が基準時間よりも大きくて比較
時間の1〜2倍である場合の2つのカーソル移動キーが
マルチタッチされている態様の一例を示す図、 第6図(C)は経過時間が基準時間よりも大きくて比較
時間の2〜3倍である場合の2つのカーソル移動キーが
マルチタッチされている態様の一例を示す図、 第7図+8)は第6図(b)に示すようにカーソル移動
キーがマルチタッチされている場合の第1図中のキーボ
ード制御プログラム部から上位アプリケージョンプログ
ラムにキーコードが出力されるカーソル移動キーの順序
を示す図、 第7図(blは第6図(C1に示すようにカーソル移動
キーがマルチタンチされている場合の第1図中のキーボ
ード制御プログラム部から上位アプリケーションプログ
ラムにキーコードが出力されるカーソル移動キーの順序
を示す閏、 第8図+a)は第6図1cIに示すようにカーソル移動
キーがマルチタンチされている場合の第1図中のCRT
上のカーソルの移動の態様を示す図、第8図Tb)は第
6図中)に示すようにカーソル移動キーがマルチタンチ
されている場合の第1図中のCRT上のカーソルの移動
の態様を示す図、第8図(C)は第6図1cIに示すよ
うにカーソル移動キーがマルチタンチされている場合の
第1図中のCRT上のカーソルの移動の態様を示す図、
第9図は第1図中のキーボード制御プログラムト 部の処理を示す流れ図であ°る。 図において、 1・・・キーボード、 2・・・コントローラ、 3・・・キーボード制御プログラム部、4・・・CRT
制御部、 5・・・上位アプリケーションプログラム、6 ・ ・
 ・ CRT。 10・・・カーソル移動キー、 60・・・カーソルである。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing type B of data output from the keyboard to the controller in FIG. 1. Figure 4 shows the hexadecimal representation of the 8-bit data shown in Figure 3. Figure 5 shows the keyboard in Figure 1. Figure 6 shows an example of the relationship between the elapsed time between make data caused by pressing a key and break data caused by the brocade of the same key and the reference time. Figure 6 shows an example of person a in which the two cursor movement keys are multi-touched. Figure 6 (C) is a diagram showing an example of a mode in which keys are multi-touched, and when two cursor movement keys are multi-touched when the elapsed time is greater than the reference time and is 2 to 3 times the comparison time. Figure 7+8) is a diagram showing an example of how the cursor movement key is multi-touched as shown in Figure 6(b). Figure 7 shows the order of the cursor movement keys in which key codes are output. Figure 8+a) shows the CRT in Figure 1 when the cursor movement keys are multi-touched as shown in Figure 6 1cI.
Figure 8 (Tb), which shows the manner in which the cursor moves above, shows the manner in which the cursor moves on the CRT in Figure 1 when the cursor movement key is pressed multi-touch as shown in Figure 6). FIG. 8(C) is a diagram showing how the cursor moves on the CRT in FIG. 1 when the cursor movement key is pressed in multiple directions as shown in FIG. 6 1cI.
FIG. 9 is a flowchart showing the processing of the keyboard control program section in FIG. 1. In the figure, 1...Keyboard, 2...Controller, 3...Keyboard control program section, 4...CRT
Control unit, 5... Upper application program, 6...
・CRT. 10... Cursor movement key, 60... Cursor.

Claims (1)

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

Cited By (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

Cited By (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
JP2536517B2 (en) 1996-09-18

Similar Documents

Publication Publication Date Title
US4587630A (en) Intelligent programmable touchscreen system
JP2792597B2 (en) Portable information terminal using soft keyboard and information input method
US6532003B2 (en) Data processing apparatus having control element for detecting false touch
US5945979A (en) Combined digital and analog cursor control
JPH10228350A (en) Input device
US20010030641A1 (en) Input control system with the ability of setting arbitrary switch functions of the switch input section
JPH11327727A (en) System and method for screen operation
JPS63263515A (en) Cursor mobile key control system
JPH07141140A (en) Multi-window type computer system
JP2000112657A (en) Circuit for preventing erroneous operation of pointing device
JPS63214823A (en) Touch panel input device
JPS63317817A (en) Keyboard control system
JPH0399312A (en) Information processor
JPH07121299A (en) Pen computer device
JPH0713683A (en) Multiwindow display device
JP3263205B2 (en) Programmable keyboard
KR19990048975A (en) Input device of a personal computer
JPS6235933A (en) Input control system for cursor moving key
JPH04184524A (en) Integrated input-output device
JPH04205219A (en) Pointing device controller
JPS5819939A (en) Input device
JPH0425929A (en) Input position designation device
JP2001034416A (en) Resistance film type touch panel, input device and data processor having the same panel
JPH082747Y2 (en) Document processing device
JPH02302812A (en) Touch panel control system