JP5271240B2 - Touch panel device - Google Patents
Touch panel device Download PDFInfo
- Publication number
- JP5271240B2 JP5271240B2 JP2009267966A JP2009267966A JP5271240B2 JP 5271240 B2 JP5271240 B2 JP 5271240B2 JP 2009267966 A JP2009267966 A JP 2009267966A JP 2009267966 A JP2009267966 A JP 2009267966A JP 5271240 B2 JP5271240 B2 JP 5271240B2
- Authority
- JP
- Japan
- Prior art keywords
- key
- upper limit
- detection
- area
- limit value
- 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.)
- Active
Links
- 238000001514 detection method Methods 0.000 claims abstract description 152
- 230000008859 change Effects 0.000 abstract description 8
- 238000000034 method Methods 0.000 description 85
- 230000008569 process Effects 0.000 description 83
- 238000012790 confirmation Methods 0.000 description 49
- 238000013500 data storage Methods 0.000 description 26
- 230000006870 function Effects 0.000 description 6
- 230000007257 malfunction Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 1
- 239000012528 membrane Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
Description
本発明は、同時にされた複数のタッチ入力を検出するタッチパネル装置に関するものである。 The present invention relates to a touch panel device that detects a plurality of simultaneous touch inputs.
ユーザによりなされたタッチ入力を検出するタッチパネル装置は、特定の動作を規定するなどの目的で、同時にされた複数のタッチ入力を検出する機能を有するものがある(例えば特許文献1に開示されているマトリクス型のタッチパネル)。 A touch panel device that detects a touch input made by a user has a function of detecting a plurality of touch inputs that are simultaneously performed for the purpose of defining a specific operation (for example, disclosed in Patent Document 1). Matrix type touch panel).
ところで、上記のようなタッチパネル装置では、ハードウェアやソフトウェアの制限から、検出可能なタッチ入力数の上限値が予め定められた固定値として規定されていた。このため、タッチパネル装置を組み込んだ装置では、所定数のタッチ入力で動作を規定するようなアプリケーションプログラムを導入する場合、所定数を越えるタッチ入力を制限するために、タッチ入力数の上限値を任意に設定することができなかった。例えば、タッチパネルを用いる場合、特定のタッチ入力用の画像を表示させている状態、すなわち、タッチ入力操作時において、予め設定された数以上のタッチ入力を受け付けないように制限することができない。 By the way, in the touch panel device as described above, the upper limit value of the number of touch inputs that can be detected is defined as a predetermined fixed value due to limitations of hardware and software. For this reason, in an apparatus incorporating a touch panel device, when an application program that defines the operation with a predetermined number of touch inputs is introduced, an upper limit value for the number of touch inputs is arbitrarily set in order to limit touch inputs exceeding the predetermined number. Could not be set. For example, in the case of using a touch panel, it is not possible to limit the state where a specific touch input image is displayed, that is, in a touch input operation, not to accept more than a preset number of touch inputs.
本発明は、上記の問題点に鑑みてなされたものであり、同時にされた複数のタッチ入力を検出するタッチパネル装置において検出可能なタッチ入力数の上限値をタッチ入力操作時においても変更できるようにすることを目的としている。 The present invention has been made in view of the above-described problems, so that the upper limit value of the number of touch inputs that can be detected in a touch panel device that detects a plurality of touch inputs simultaneously can be changed even during a touch input operation. The purpose is to do.
本発明に係るタッチパネル装置は、上記の課題を解決するために、同時にタッチ入力可能なタッチ入力数の上限値を記憶する上限値記憶手段と、前記タッチ入力の検出数を記憶する検出数記憶手段と、前記検出数記憶手段に記憶された前記検出数が前記上限値記憶手段に記憶された前記上限値を超えたときに上限値を超えたことを判定する判定手段とを備えていることを特徴としている。 In order to solve the above problems, the touch panel device according to the present invention stores an upper limit value storage unit that stores an upper limit value of the number of touch inputs that can be input simultaneously, and a detection number storage unit that stores the detected number of touch inputs. And determining means for determining that the upper limit value has been exceeded when the detected number stored in the detected number storage means exceeds the upper limit value stored in the upper limit value storing means. It is a feature.
上記の構成では、予め、上限値記憶手段に上限値を記憶しておく一方、同時に複数のタッチ入力がされると、そのタッチ入力の検出数が検出数記憶手段に記憶される。この状態で、判定手段により、検出数記憶手段に記憶された検出数が上限値記憶手段に記憶された上限値を超えると、上限値を超えたことが判定される。 In the above configuration, the upper limit value is stored in advance in the upper limit value storage unit, and when a plurality of touch inputs are simultaneously performed, the detected number of touch inputs is stored in the detection number storage unit. In this state, when the number of detections stored in the detection number storage unit exceeds the upper limit value stored in the upper limit value storage unit, the determination unit determines that the upper limit value has been exceeded.
前記タッチパネル装置において、前記上限値記憶手段が、前記上限値が外部から書き込まれる書込領域と、当該書込領域に書き込まれた前記上限値が前記判定手段による判定に使用するための設定値としてタッチ入力の検出処理と同期してコピーされる設定領域と、前記判定に使用された前記上限値が前記設定領域から読出値としてコピーされて読み出される読出領域とを含んでいることが好ましい。 In the touch panel device, the upper limit value storage means sets a write area in which the upper limit value is written from the outside and a setting value for the upper limit value written in the write area to be used for determination by the determination means. It is preferable to include a setting area that is copied in synchronization with the touch input detection process, and a reading area in which the upper limit value used for the determination is copied and read as a reading value from the setting area.
なぜなら、外部から上限値が入力されるタイミングがタッチ入力の検出処理と同期していないと、検出処理の間に上限値が複数回入力された場合、どの上限値が判定に用いられたかがわからないため、判定結果を受けた外部の処理装置が正しい処理をすることができなくなるおそれがあるからである。 This is because if the upper limit value input timing from the outside is not synchronized with the touch input detection process, when the upper limit value is input multiple times during the detection process, it is not known which upper limit value was used for the determination. This is because the external processing device that has received the determination result may not be able to perform correct processing.
そこで、外部から書込領域に書き込まれた上限値がタッチ入力の検出処理と同期して設定値領域にコピーされて設定され、当該上限値が判定手段による判定に使用される。また、判定に使用された上限値が設定領域から読出値として読出領域にコピーされる。これにより、外部から書込領域への上限値の書き込みが検出処理と非同期で行われても、判定に実際に使用された上限値を外部から読み取ることができる。したがって、判定結果を受けた外部の処理装置などが正しい処理をすることができる。しかも、次のタイミングで、書込領域から設定領域に新たな上限値がコピーされても、読出領域に上限値を保存しておくことにより、読出領域に保存された上限値を確実に読み出すことができる。 Therefore, the upper limit value written in the writing area from the outside is copied and set in the setting value area in synchronization with the touch input detection process, and the upper limit value is used for the determination by the determining means. Further, the upper limit value used for the determination is copied from the setting area to the reading area as a reading value. Thereby, even if the upper limit value is written from the outside to the writing area asynchronously with the detection process, the upper limit value actually used for the determination can be read from the outside. Therefore, an external processing device or the like that has received the determination result can perform correct processing. Moreover, even if a new upper limit value is copied from the writing area to the setting area at the next timing, the upper limit value stored in the reading area can be reliably read out by storing the upper limit value in the reading area. Can do.
本発明に係るタッチパネル装置は、以上のように、上限値記憶手段と、検出数記憶手段と、判定手段とを備えているので、検出可能なタッチ入力数の上限値をタッチ入力操作時においても変更することができる。したがって、タッチ入力を外部から入力された上限値に基づいて制限することができるという効果を奏する。 As described above, the touch panel device according to the present invention includes the upper limit value storage unit, the detection number storage unit, and the determination unit, so that the upper limit value of the number of touch inputs that can be detected is also determined during the touch input operation. Can be changed. Therefore, the touch input can be limited based on the upper limit value input from the outside.
本発明の実施形態を図1〜図6に基づいて説明すると、以下の通りである。 An embodiment of the present invention will be described below with reference to FIGS.
〔1.タッチパネル装置の構成〕
図1に示すように、本実施の形態に係るタッチパネル装置1は、タッチパネル2と、駆動・検出部3と、タッチパネルコントローラ部4とを備えている。
[1. Configuration of touch panel device]
As shown in FIG. 1, the
なお、以降の説明では、タッチパネル2におけるタッチ入力箇所をキーと称する。
In the following description, the touch input location on the
〔1−1.タッチパネルの構成〕
タッチパネル2は、同時にされた複数のタッチ入力に対する複数のキーを検出できるタッチパネルであれば、どのようなタッチパネルを採用してもよい。例えば、タッチパネル2としてはマトリクス型タッチパネルが利用できる。
[1-1. Configuration of touch panel
The
〔1−2.駆動・検出部の構成〕
駆動・検出部3は、タッチパネルコントローラ4から与えられる駆動データに基づいてタッチパネル2の電極に駆動電圧を印加する。また、駆動・検出部3は、駆動されたタッチパネル2の電極から出力される検出電圧に基づく検出データをタッチパネルコントローラ4に出力する。
[1-2. Configuration of drive / detection unit
The driving / detecting
〔1−3.タッチパネルコントローラの構成〕
タッチパネルコントローラ4は、下記の(1)〜(4)の機能を有している。
(1)タッチパネル装置1の外部に設けられるホストCPU5からの指示を受けて、タッチパネル2へ与える駆動データを出力してタッチパネル2の電極を駆動し、それに応じてタッチパネル2から出力される検出データを取り込み、その検出データに基づいてキーを検出する。
(2)検出したキー(以降、「検出キー」と称する)を前回の検出の後に確定したキー(以降、「確定キー」と称する)とそれぞれの位置データで比較し、その比較結果に応じて、検出キーが確定キーに対して位置の変化したキー(移動したキー)であるか否かを判定して、キーを確定する。上記のキーの検出からキーの確定までの一連の動作(スキャン)は所定のスキャン周期内で繰り返し行われる。
(3)ホストCPU5にキーが確定したことを通知し、ホストCPU5からの確定キーのデータの読み出しを受け付ける。
(4)同時に検出できる(タッチ入力可能な)最大のキーの数(上限値)を設定し、検出キーの数が当該上限値を越えたときに、上限値を超えたことを判定してスキャンを終了し、上限値を超えたことをホストCPU5に通知する。
[1-3. Configuration of touch panel controller
The
(1) In response to an instruction from the
(2) The detected key (hereinafter referred to as “detection key”) is compared with the key determined after the previous detection (hereinafter referred to as “confirmation key”) with the respective position data, and according to the comparison result Then, it is determined whether or not the detection key is a key whose position has changed with respect to the confirmation key (moved key), and the key is confirmed. A series of operations (scanning) from the detection of the key to the determination of the key is repeatedly performed within a predetermined scanning period.
(3) Notifying the
(4) Set the maximum number of keys (upper limit value) that can be detected at the same time (touch input possible), and when the number of detected keys exceeds the upper limit value, determine that the upper limit value has been exceeded and scan To notify the
タッチパネルコントローラ4は、上記の機能を実現するために、コントローラCPU41と、メモリ部42と、キー確定処理部43とを有している。コントローラCPU41、メモリ部42およびキー確定処理部43は、バス44に接続されており、バス44を介して、それぞれデータや指示の送受を行う。
The
コントローラCPU41は、上記の(1)〜(4)の機能を実現するための制御処理を行う。キー確定処理部43は、ハードウェアロジック(デジタル回路)によって構成されるが、ソフトウェア(コントローラCPU41が実行する制御プログラム)で実現される機能として構成されてもよい。キー確定処理部43については、図2を参照して、後に詳しく説明する。
The
〔1−3−1.メモリ部の構成〕
RAMからなるメモリ部42は、TNEWキー記憶領域421(検出数記憶手段)と、CURキー記憶領域422と、作業領域423と、上限キー数書込領域424と、上限キー数設定領域425と、上限キー数読出領域426と、検出結果データ記憶領域427と、読出結果データ記憶領域428とを有している。
[1-3-1. Configuration of memory unit)
The
〔1−3−1(a).TNEWキー記憶領域の構成〕
TNEWキー記憶領域421は、後述するリンク判定部432によるリンクの判定を行うために、新たな検出キーについての各種のデータを記憶する。このTNEWキー記憶領域421は、図3に示すように、検出キーについての検出キー位置DETECTEDPOSを記憶する領域と、OFFフラグ、ONフラグ、MOVEフラグおよびLINKフラグを設ける各領域(1ビット)と、LINK−KEYデータを記憶する領域(4ビット)と、検出キー数TNEWKEY−NO(検出数)を記憶する領域(4ビット)とを有している。上記の各領域は、キー毎に設けられており、それぞれにキー番号が付与されている。
[1-3-1 (a). Configuration of TNEW key storage area]
The TNEW
検出キー位置DETECTEDPOSは、検出キーの水平方向および垂直方向の位置データである。この検出キー位置DETECTEDPOSは、キーが検出された順に1番目の記憶領域から書き込まれていく。 The detection key position DETECTEDDPOS is position data in the horizontal direction and the vertical direction of the detection key. The detected key position DETECTEDDPOS is written from the first storage area in the order in which the keys are detected.
OFFフラグは“1”であるときにキーが無効であることを示す。ONフラグは“1”であるときに検出キーが有効であることを示す。MOVEフラグは、“1”であるときに、今回の検出キーが前回の確定キーから移動したMOVEキーであることを示す。LINKフラグは、“1”であるときに、検出キーが確定キーとリンクしている(重なっている)LINKキーであることを示す。LINK−KEYデータは、リンクしているキーのキー番号のデータである。 When the OFF flag is “1”, it indicates that the key is invalid. When the ON flag is “1”, it indicates that the detection key is valid. When the MOVE flag is “1”, it indicates that the current detection key is the MOVE key moved from the previous confirmation key. When the LINK flag is “1”, it indicates that the detection key is a LINK key linked (overlapping) with the confirmation key. LINK-KEY data is key number data of linked keys.
検出キー数TNEWKEY−NOは検出キーの数である。後述するように、判定部434(図2参照)によって、検出キー数TNEWKEY−NOがホストCPU5から書き込まれる前述の上限値を超えているか否か判定される。
The number of detection keys TNEWKEY-NO is the number of detection keys. As will be described later, the determination unit 434 (see FIG. 2) determines whether or not the detected key number TNEWKEY-NO exceeds the above-described upper limit value written from the
〔1−3−1(b).CURキー記憶領域の構成〕
CURキー記憶領域422は、確定キーについての各種のデータを記憶する。このCURキー記憶領域422は、図4に示すように、確定されたキーについての確定キー位置CURPOSを記憶する領域と、OFFフラグ、ONフラグ、MOVEフラグおよびLINKフラグを設ける各領域と、LINK−KEYデータを記憶する領域と、キー数CURKEY−NOを記憶する領域(4ビット)とを有している。上記の各領域は、キー毎に設けられており、それぞれにキー番号が付与されている。
[1-3-1 (b). Configuration of CUR key storage area]
The CUR
確定キー位置CURPOSは、確定キーの水平方向および垂直方向の位置データである。キー数CURKEY−NOは、確定キーの数であり、検出キー数TNEWKEY−NOと同数に規定されている。 The confirmation key position CURPOS is position data of the confirmation key in the horizontal direction and the vertical direction. The key number CURKEY-NO is the number of confirmation keys, and is defined as the same number as the detected key number TNEWKEY-NO.
〔1−3−1(c).作業領域の構成〕
作業領域423は、キー確定処理に必要な各種の値を記憶するために設けられている。例えば、このような値としては、CHANGEDフラグが挙げられる。
[1-3-1 (c). (Workspace configuration)
The
後述するように、リンク判定部432により、今回のスキャンで検出された各検出キーと、前回のスキャンで確定された全ての確定キーとの一致の有無が比較される。CHANGEDフラグは、各検出キーが、どの確定キーとも一致していないと判定されたときに“1”にセットされる。
As will be described later, the
また、作業領域423は、後述するキー検出部431がキー検出を行う検出周期を設定する検出周期データを記憶している。この周期データも、ホストCPU5によって書き込まれるが、固定値であってもよい。
The
〔1−3−1(d).上限キー数書込領域の構成〕
上限キー数書込領域424(上限値記憶手段,書込領域)は、ホストCPU5から、書込上限キー数INTFKEY−NUMLIMITが書き込まれる4ビットの領域である。書込上限キー数INTFKEY−NUMLIMITは、ホストCPU5によって規定された同時に検出可能な最大のキーの数(上限値)である。
[1-3-1 (d). (Configuration of upper limit key number writing area)
The upper limit key number writing area 424 (upper limit storage means, writing area) is a 4-bit area in which the write upper limit key number INTFKEY-NUMLIMIT is written from the
〔1−3−1(e).上限キー数設定領域の構成〕
上限キー数設定領域425(上限値記憶手段,設定領域)は、上限キー数書込領域424に記憶されている書込上限キー数INTFKEY−NUMLIMITの値が書き込まれる(コピーされる)4ビットの領域である。上限キー数設定領域425では、書き込まれた値が設定上限キー数EXECKEY−NUMLIMIT(設定値)として設定される。
[1-3-1 (e). (Configuration of upper limit key count setting area)
The upper limit key number setting area 425 (upper limit storage means, setting area) is a 4-bit value in which the value of the write upper limit key number INTFKEY-NUMLIMIT stored in the upper limit key
〔1−3−1(f).上限キー数読出領域の構成〕
上限キー数読出領域426(上限値記憶手段,読出領域)は、上限キー数設定領域425に記憶されている設定上限キー数EXECKEY−NUMLIMITの値が書き込まれる(コピーされる)4ビットの領域である。この上限キー数読出領域426では、書き込まれた値が読出上限キー数CURKEY−NUMLIMIT(読出値)として設定される。また、上限キー数読出領域426は、ホストCPU5から読み出しのみ可能とされる領域である。
[1-3-1 (f). (Configuration of upper limit key number reading area)
The upper limit key number reading area 426 (upper limit storage means, reading area) is a 4-bit area in which the value of the set upper limit key number EXECKEY-NUMLIMIT stored in the upper limit key
〔1−3−1(g).検出結果データ記憶領域の構成〕
検出結果データ記憶領域427は、後述する判定部434による判定の結果を表すデータとしての検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSが記憶される1ビットの領域である。検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSは、スキャン周期の開始時に初期化されて“0”となり、前述の検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITより大きいと“1”に書き替えられる。
[1-3-1 (g). Configuration of detection result data storage area]
The detection result
〔1−3−1(h).読出結果データ記憶領域の構成〕
読出結果データ記憶領域428は、検出結果データ記憶領域427に記憶されている検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が書き込まれる(コピーされる)1ビットの領域である。この読出結果データ記憶領域428では、書き込まれた値が読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSとして設定される。読出結果データ記憶領域428は、ホストCPU5から読み出しのみ可能とされる領域である。
[1-3-1 (h). Configuration of read result data storage area]
The read result
〔1−3−1(i).ホストCPUアクセス可能・不可領域〕
前述の上限キー数書込領域424、上限キー数読出領域426および読出結果データ記憶領域428は、ホストCPU5がアクセスできるホストCPUアクセス可能領域を構成している。また、前述の上限キー数設定領域425および検出結果データ記憶領域427は、ホストCPU5がアクセスできないホストCPUアクセス不可領域を構成している。
[1-3-1 (i). (Host CPU accessible / impossible area)
The upper limit key
〔1−3−2.キー確定処理部の構成〕
図2に示すように、キー確定処理部43は、キー検出部431と、リンク判定部432と、キー確定部433と、判定部434(判定手段)と、メモリ管理部435とを有している。
[1-3-2. Configuration of key confirmation processing unit)
As shown in FIG. 2, the key
〔1−3−2.(a)キー検出部の構成〕
キー検出部431は、タッチパネル2の電極を駆動した結果として得られた検出データに基づいてキーを検出する。このため、キー検出部431は、電極を駆動するための駆動データを駆動・検出部3に出力する。また、キー検出部431は、駆動・検出部3から出力される検出データより、水平方向および垂直方向の位置データを特定する。このように特定された位置データは、タッチの中心位置(点)ではなく、矩形(面)として得られる。
[1-3-2. (A) Configuration of Key Detection Unit]
The
また、キー検出部431は、キー検出に先立って、CURキー記憶領域422における確定キーの全てについてONフラグの値(“1”)をTNEWキー記憶領域421のOFFフラグの領域にコピーする。キー検出部431は、キー検出の結果、確定キーと同じ検出キー(変化なし)を検出したり、検出キーの移動を検出したりしたときに、上記のOFFフラグの値を0にする。したがって、このような検出結果の検出キーは、OFFフラグが“1”であるときにOFFキーとして残る。
In addition, prior to key detection, the
また、キー検出部431は、前述のスキャン周期において検出処理を行い、各検出処理で検出された全ての検出キーについて、後述するリンク判定部432によるリンクの判定が行われると、それらの検出キーについてキー確定処理を行うように、キー確定部433に指示する。
〔1−3−2.(b)リンク判定部の構成〕
リンク判定部432は、キー検出部431によって検出されたキーが、前回のキー確定処理で確定した全てのキーに対して重なっているか否か(リンクの有無)を判定する。
In addition, the
[1-3-2. (B) Configuration of link determination unit]
The
検出キーのデータは、メモリ部42のTNEWキー記憶領域421に検出順に並ぶように記憶される。また、前回の確定処理ですでに確定した確定キーは、メモリ部42のCURキー記憶領域422に検出時の検出順に並ぶように記憶される。前回の確定処理で確定された複数の一群の確定キーと、今回の検出された複数の一群の検出キーとの間で、両群のキーの並びの関係が一致している場合はキーの変化がないので不都合はない。
The detection key data is stored in the TNEW
これに対し、ジェスチャー操作やドラッグ操作により、指などの指示手段がタッチパネル2上を移動している場合や、入力数が増加した場合は、両群のキーの並びの関係が一致しなくなる。このため、今回の検出キーと前回の確定キーとの関係を特定しないと、検出キーの変化が、新たなタッチ入力によるものであるのか、ジェスチャー操作やドラッグ操作によりキーが移動したものであるのかがわからない。
On the other hand, when an instruction means such as a finger is moved on the
したがって、先の確定キーと後の確定キーとの両群の関連情報がないと、ホストCPU5は、単に両群の確定キーを受け取っても、どのキーがどう変化したかが容易にはわからない。このため、リンクの有無を判定することが必要となる。
Accordingly, if there is no information related to both groups of the previous confirmation key and the subsequent confirmation key, the
リンク判定部432は、リンクの有無を判定するために、下記の(1),(2)の機能を有している。
(1)一致判定
リンクの有無を判定する前に、今回の確定処理で検出された1つの検出キーKTNEWと、前回の確定処理で確定した全ての確定キーKCURとを位置データで比較して、両者の一致を判定する。一致を判定すると、前述のTNEWキー記憶領域421のONフラグを“1”にセットする。一方、両者の不一致を判定すると、作業領域423のCHANGEDフラグを1にセットする。
(2)リンク有無判定
検出キーKTNEWの位置データと、CURキー記憶領域422のキー番号1からキー番号TKまでの各位置データとを順次比較し、比較の結果、両キーKTNEW,KCURについて、重なり部分の有無を判定する。両キーKTNEW,KCURに重なり部分のある場合に重なり度合いを算出し、リンク有無判定対象となる検出キーKTNEWを、最も大きい重なり度合いが得られた確定キーKCURに対して移動したキーであるMOVEキーと決定し、TNEWキー記憶領域421のMOVEフラグを“1”にセットする。また、比較の結果、重なりの度合いが0である場合、検出キーKTNEWをリンクのないNEWキーと決定し、TNEWキー記憶領域421のONフラグを“1”にセットする。
The
(1) Matching determination Before determining the presence / absence of a link, one detection key KTNEW detected in the current determination process is compared with all the determination keys KCUR determined in the previous determination process using position data. A match between the two is determined. When the match is determined, the ON flag of the TNEW
(2) Link presence / absence determination The position data of the detection key KTNEW and the position data from the
〔1−3−2.(c)キー確定部の構成〕
検出キーKTNEWが確定キーKCURに対して変化していない場合でも、キー検出部431によってキーが検出される毎にホストCPU5に検出結果を通知するのは効率的でなく、システム性能を低下させる。
[1-3-2. (C) Configuration of key determination unit]
Even when the detection key KTNEW does not change with respect to the confirmation key KCUR, it is not efficient to notify the
そこで、キー確定部433は、前回の確定処理で確定した一群の確定キーKCURに対して、今回検出された一群の検出キーKTNEWが位置および数について変化しない場合は、その検出結果をホストCPU5に通知しない。また、キー確定部433は、一群の検出キーKTNEWが、一群の確定キーKCURに関連して変化した検出キーKTNEW(CHANGEDフラグ=1)および全く新たに検出された検出キーKTNEWを含む場合のみ、TNEWキー記憶領域421に記憶されている各データをCURキー記憶領域422にコピーして確定する。キー確定部433は、CURキー記憶領域422のデータが上記のように確定すると、確定したことをホストCPU5に割り込み通知する。
Therefore, when the group of detection keys KTNEW detected this time does not change with respect to the group of confirmation keys KCUR determined in the previous determination process, the
このように、検出キーKTNEWの少なくとも1つが、一群の確定キーKCURに対して変化しているときのみ、検出キーKTNEWが確定される。これにより、ホストCPU5への割り込み回数およびホストCPU5によるメモリ部42へのアクセス回数を低減し、システム性能の低下を回避することができる。
In this way, the detection key KTNEW is confirmed only when at least one of the detection keys KTNEW has changed with respect to the group of confirmation keys KCUR. As a result, the number of interrupts to the
また、キー確定部433は、後述する判定部434による判定の結果として得られる結果データを検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が“1”に書き替えられることにより、通知処理を行う。キー確定部433は、通知処理として、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を読出結果データ記憶領域428にコピーし、検出キーの数(タッチ入力数)が上限値を超えたことをホストCPU5に割り込み通知する。また、キー確定部433は、通知処理の前に、上限キー数設定領域425に記憶されている設定上限キー数EXECKEY−NUMLIMITの値を、上限キー数読出領域426に読出上限キー数CURKEY−NUMLIMITとしてコピーする。
In addition, the
〔1−3−2.(d)判定部の構成〕
判定部434は、キー確定部433により、CHANGEDフラグが1であると判定された場合、またはCHANGEDフラグが1でなく、且つTNEWキー記憶領域421の検出キー数TNEWKEY−NOと、CURキー記憶領域422のキー数CURKEY−NOとが等しくないと判定された場合、次の判定処理を行う。
[1-3-2. (D) Configuration of determination unit]
When the key determining
判定処理では、まず、TNEWキー記憶領域421から読み出した検出キー数TNEWKEY−NOと、上限キー数設定領域425から読み出した設定上限キー数EXECKEY−NUMLIMITとを比較する。比較の結果、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITを越えているときに検出キーの数が上限値を超えたことを判定する。
In the determination process, first, the detected key number TNEWKEY-NO read from the TNEW
判定部434は、キー確定部433によるキー確定処理において、上記の判定処理を行う。これにより、1スキャン周期で検出された確定前の全ての検出キーについて判定処理が行われる。
The
これに代えて、判定部434は、キー検出部431によって1つのキーが検出される毎に、リンク判定部432による一致判定処理が行われる前に上記の判定処理を行ってもよい。これにより、1スキャン周期における全てのキーの検出が終了する前でも、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITより大きくなれば、検出キーの数が上限値を超えたと判定される。
Instead, the
〔1−3−2.(e)メモリ管理部の構成〕
メモリ管理部435は、キー検出部431、リンク判定部432、キー確定部433、判定部434およびホストCPU5の指示を受けて、メモリ部42における各領域421〜428に対するデータの書き込みおよびデータの読み出しを行う。
[1-3-2. (E) Configuration of memory management unit]
The
特に、メモリ管理部435は、判定部434が検出キーの数が上限値を超えたことを判定したときに、検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を初期値である“0”から“1”に書き替える。
In particular, when the
〔2.ホストCPU5の構成〕
ホストCPU5は、タッチパネル装置1が組み込まれる装置に設けられるCPUであり、タッチパネル装置1を含む各部の制御を司る。このホストCPU5は、タッチパネルコントローラ4のコントローラCPU41と通信して、コントローラCPU41にタッチパネル装置1を制御するための指示やデータを送信する一方、タッチパネルコントローラ4で得られた各種のデータを取得する。
[2. Configuration of host CPU 5]
The
特に、ホストCPU5は、アプリケーションプログラムで設定されるキーの上限値に基づいて書込上限キー数INTFKEY−NUMLIMITを決定し、上限キー数書込領域424へ書き込む。また、ホストCPU5は、キー確定部433からの割り込み通知を受けると、CURキー記憶領域422の各データと、上限キー数読出領域426の読出上限キー数CURKEY−NUMLIMITの値と、読出結果データ記憶領域428の読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSの値とを読み出す。CURキー記憶領域422の各データは、前述の確定キー位置CURPOS、OFFフラグ、ONフラグ、MOVEフラグ、LINKフラグ、LINK−KEYデータおよびキー数CURKEY−NOである。さらに、ホストCPU5は、取得したこれらのデータをアプリケーションプログラムに渡す。
In particular, the
〔3.タッチパネル装置におけるキー確定動作〕
ここで、上記のように構成されるタッチパネル装置1におけるキーの確定動作について図5および図6のフローチャートを参照して説明する。
[3. (Key confirmation operation in touch panel device)
Here, the key determination operation in the
〔3−1.第1のキー確定動作〕
先に、キー確定処理において判定処理を行う場合について説明する。
[3-1. First key confirmation operation]
First, the case where the determination process is performed in the key confirmation process will be described.
〔3−1−1.初期化処理〕
図5に示すように、まず、キー検出部431は、前回のキー検出処理が開始してから所定のスキャン周期が経過すると(ステップS1)、次のスキャン周期の開始時時に初期化処理を行う(ステップS2)。
[3-1-1. Initialization process)
As shown in FIG. 5, first, the
初期化処理では、次の各処理が行われる。
(a)TNEWキー記憶領域421をクリアする。
(b)CURキー記憶領域422の全てのONフラグの値(“1”)をTNEWキー記憶領域421のOFFフラグの同じキー番号の領域にコピーする。
(c)ホストCPU5により上限キー数書込領域424に書き込まれた書込上限キー数INTFKEY−NUMLIMITを、上限キー数設定領域425に設定上限キー数EXECKEY−NUMLIMITとしてコピーする。
(d)検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSを0にセットする。
(e)TNEWキー記憶領域421の検出キー数TNEWKEY−NOを0にセットする。
(f)作業領域423のCHANGEDフラグを0にセットする。
In the initialization process, the following processes are performed.
(A) Clear the TNEW
(B) All ON flag values (“1”) in the CUR
(C) The write upper limit key number INTFKEY-NUMLIMIT written in the upper limit key
(D) The detection key number upper limit determination result EXECKEY-NUMLIMIT-STATUS in the detection result
(E) The number of detected keys TNEWKEY-NO in the TNEW
(F) The CHANGED flag in the
〔3−1−2.キー検出処理〕
初期化処理の後は、キー検出部431がキー検出処理を行う(ステップS3)。キー検出処理では、駆動・検出部3に予め所望に設定されている駆動データを与え、その結果、駆動・検出部3から出力される検出データに基づいてキーを特定する。
[3-1-2. Key detection process)
After the initialization process, the
〔3−1−3.リンク判定処理〕
上記のキー検出処理において1つの検出キーKTNEWが検出されると、リンク判定処理に移行する。
[3-1-3. (Link judgment process)
When one detection key KTNEW is detected in the key detection process, the process proceeds to the link determination process.
まず、検出キーKTNEWおよび確定キーKCURの位置の一致判定を行う(ステップS4)。ステップS4で両キーの位置が一致していると判定すると、TNEWキー記憶領域421のONフラグを1にセットし、キー検出部431にリンク判定が終了したことを通知する。また、ステップS4で両キーの位置が一致していないと判定すると、作業領域423のCHANGEDフラグを1にセットして(ステップS5)、リンク有無判定処理に移行する(ステップS6)。
First, the coincidence determination of the positions of the detection key KTNEW and the confirmation key KCUR is performed (step S4). If it is determined in step S4 that the positions of both keys match, the ON flag of the TNEW
リンク有無判定処理では、検出キーKTNEWおよび確定キーKCURを比較し、両キーに重なり部分(リンク)があると判定すると、リンク判定対象となる検出キーKTNEWを、最も大きい重なり度合いが得られた確定キーKCURに対して移動したキーであるMOVEキーと決定する。また、比較の結果、両キーの重なりの度合いが0である場合、検出キーKTNEWをリンクのないNEWキーと決定する。 In the link presence / absence determination process, the detection key KTNEW and the determination key KCUR are compared, and if it is determined that there is an overlapping portion (link) between the two keys, the detection key KTNEW to be a link determination target is determined to have the highest degree of overlap. It is determined that the key is the MOVE key that has been moved with respect to the key KCUR. As a result of the comparison, if the degree of overlap between the two keys is 0, the detection key KTNEW is determined as a NEW key without a link.
以上のリンク判定処理は、ステップS3のキー検出処理で1つの検出キーKTNEWが検出される毎に繰り返し行われる。 The link determination process described above is repeated every time one detection key KTNEW is detected in the key detection process in step S3.
〔3−1−4.キー確定処理および判定処理〕
上記のリンク判定処理が、今回の検出処理で検出された全ての検出キーKTNEWについて終了すると、キー確定処理および判定処理に移行する。
[3-1-4. (Key confirmation process and judgment process)
When the above link determination process ends for all detection keys KTNEW detected in the current detection process, the process proceeds to a key determination process and a determination process.
キー確定部433は次に説明するキー確定処理を行い、判定処理は次に説明する判定処理を行う。
The
まず、作業領域423のCHANGEDフラグが1であるか否かを判定する(ステップS7)。ステップS7でCHANGEDフラグが1である(不一致)と判定すると、処理を後述するステップS9(判定処理)に移行する。一方、ステップS7でCHANGEDフラグが1でないと判定すると、TNEWキー記憶領域421の検出キー数TNEWKEY−NOと、CURキー記憶領域422のキー数CURKEY−NOとが等しいか否かを判定する(ステップS8)。
First, it is determined whether or not the CHANGED flag in the
ステップS8でTNEWKEY−NO=CURKEY−NOであると判定すると、検出キーKTNEWが確定キーKCURに対してキー数および位置について変化がないので、ステップS1に処理を戻す。このとき、TNEWキー記憶領域421のOFFフラグの状態がそのまま残る。
If it is determined in step S8 that TNEWKEY-NO = CURKEY-NO, the detection key KTNEW has no change in the number of keys and the position with respect to the confirmation key KCUR, and the process returns to step S1. At this time, the state of the OFF flag in the TNEW
ステップS8でTNEWKEY−NO≠CURKEY−NOであると判定すると、TNEWキー記憶領域421の検出キー数TNEWKEY−NOが上限キー数設定領域425の設定上限キー数EXECKEY−NUMLIMIT以下であるか否かを判定する(ステップS9)。ステップS9で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であると判定すると、同時に複数検出されたキーの数は設定された上限値を越えていないことになる。この場合は、ステップS8の判定の結果、キー検出後にキー数が変化していることから、TNEWキー記憶領域421の全ての検出キーKTNEWのデータを新たな確定キーKCURのデータとしてCURキー記憶領域422に書き込む(ステップS11)。
If it is determined in step S8 that TNEWKEY-NO ≠ CURKEY-NO, it is determined whether or not the number of detected keys TNEWKEY-NO in the TNEW
一方、ステップS9で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下でないと判定すると、同時に複数検出されたキーの数は設定された上限値を越えていることになる。この場合は、検出結果データ記憶領域427の検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を初期値である“0”から“1”に書き替えて(ステップS10)、処理をステップS12に移行する。このとき、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値が、読出結果データ記憶領域428にコピーされる。また、上限キー数設定領域425の設定上限キー数EXECKEY−NUMLIMITの値が、上限キー数読出領域426に読出上限キー数CURKEY−NUMLIMITとしてコピーされる。
On the other hand, if it is determined in step S9 that the detected key number TNEWKEY-NO is not less than or equal to the set upper limit key number EXECKEY-NUMLIMIT, the number of keys detected simultaneously exceeds the set upper limit value. In this case, the value of the detection key number upper limit determination result execkey-numlimit-status in the detection result
そして、割り込み信号をホストCPU5に送信することにより、検出キーKTNEWが確定キーKCURから変化したこと、または検出キーの数が上限値を越えていることをホストCPU5に通知して(ステップS12)、スキャンを終え、ステップS1に処理を戻す。
Then, an interrupt signal is transmitted to the
これにより、ホストCPU5は、CURキー記憶領域422から新たなキーのデータを読み出したり、上限キー数読出領域426から読出上限キー数CURKEY−NUMLIMITを読み出したり、読出結果データ記憶領域428から読出キー数上限判定結果CURKEY−NUMLIMIT-STATUSを読み出したりする。
As a result, the
〔3−2.第2のキー確定動作〕
続いて、リンク判定前に判定処理を行う場合について説明する。
[3-2. Second key confirmation operation]
Next, a case where determination processing is performed before link determination will be described.
〔3−2−1.初期化処理〕
図6に示すように、キー検出部431は、前述のステップS1と同様、前回のキー検出処理が開始してから所定の検出周期が経過すると(ステップS21)、ステップS2と同様、初期化処理を行う(ステップS22)。
[3-2-1. Initialization process)
As shown in FIG. 6, the
〔3−2−2.キー検出処理〕
初期化処理の後は、キー検出部431が前述のステップS3と同様、キー検出処理を行う(ステップS23)。
[3-2-2. Key detection process)
After the initialization process, the
〔3−2−3.判定処理およびリンク判定処理〕
上記のキー検出処理において1つの検出キーKTNEWが検出されると、ステップS24(判定処理)に移行する。
[3-2-3. (Judgment processing and link judgment processing)
If one detection key KTNEW is detected in the key detection process, the process proceeds to step S24 (determination process).
ステップS24では、前述のステップS9と同様、検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であるか否かを判定する。ステップS23で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下であると判定すると、同時に複数検出されたキーの数は設定された上限値を越えていないことになる。この場合は、リンク判定処理に移行する。 In step S24, as in step S9 described above, it is determined whether or not the detected key number TNEWKEY-NO is equal to or smaller than the set upper limit key number execkey-numlimit. If it is determined in step S23 that the detected key number TNEWKEY-NO is equal to or less than the set upper limit key number execkey-numlimit, the number of keys detected at the same time does not exceed the set upper limit value. In this case, the process proceeds to link determination processing.
リンク判定処理では、前述のステップS4と同様、検出キーKTNEWおよび確定キーKCURの位置の一致判定を行い(ステップS25)、両キーの位置が一致していると判定すると、キー検出部431にリンク判定が終了したことを通知する。また、ステップS25で両キーの位置が一致していないと判定すると、前述のステップS5と同様、CHANGEDフラグを1にセットして(ステップS26)、前述のステップS6と同様のリンク有無判定処理に移行する(ステップS27)。
In the link determination process, as in step S4 described above, the position matching of the detection key KTNEW and the confirmation key KCUR is determined (step S25), and if it is determined that the positions of both keys match, the link to the
一方、ステップS24で検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMIT以下でないと判定すると、同時に複数検出されたキーの数は設定された上限値を越えていることになる。この場合は、前述のステップS10と同様、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値を“0”から“1”に書き替えて(ステップS28)、処理をステップS32に移行する。このときも、検出キー数上限判定結果EXECKEY−NUMLIMIT−STATUSの値は、読出結果データ記憶領域428にコピーされる。
On the other hand, if it is determined in step S24 that the detected key number TNEWKEY-NO is not less than or equal to the set upper limit key number EXECKEY-NUMLIMIT, the number of keys detected simultaneously exceeds the set upper limit value. In this case, similarly to step S10 described above, the value of the detected key number upper limit determination result EXECKEY-NUMLIMIT-STATUS is rewritten from “0” to “1” (step S28), and the process proceeds to step S32. Also at this time, the value of the detected key number upper limit determination result execkey-numlimit-status is copied to the read result
〔3−2−4.キー確定処理〕
上記のリンク判定処理が、今回の検出処理で検出された全ての検出キーKTNEWについて終了すると、キー確定処理に移行する。
[3-2-4. (Key confirmation process)
When the above link determination process is completed for all detection keys KTNEW detected in the current detection process, the process proceeds to a key determination process.
キー確定部433は、次に説明するキー確定処理を行う。
The
まず、前述のステップS7と同様、CHANGEDフラグが1であるか否かを判定する(ステップS29)。ステップS29でCHANGEDフラグが1である(不一致)と判定すると、処理を後述するステップS31に移行する。一方、ステップS29でCHANGEDフラグが1でないと判定すると、前述のステップS8と同様、検出キー数TNEWKEY−NOとキー数CURKEY−NOとが等しいか否かを判定する(ステップS30)。 First, as in step S7 described above, it is determined whether or not the CHANGED flag is 1 (step S29). If it is determined in step S29 that the CHANGED flag is 1 (mismatch), the process proceeds to step S31 described later. On the other hand, if it is determined in step S29 that the CHANGED flag is not 1, it is determined whether or not the detected key number TNEWKEY-NO and the key number CURKEY-NO are equal to each other as in step S8 (step S30).
ステップS30でTNEWKEY−NO=CURKEY−NOであると判定すると、検出キーKTNEWが確定キーKCURに対してキー数および位置について変化がないので、ステップS21に処理を戻す。このとき、TNEWキー記憶領域421のOFFフラグの状態がそのまま残る。
If it is determined in step S30 that TNEWKEY-NO = CURKEY-NO, the detection key KTNEW has no change in the number of keys and the position with respect to the confirmation key KCUR, and the process returns to step S21. At this time, the state of the OFF flag in the TNEW
ステップS30でTNEWKEY−NO≠CURKEY−NOであると判定すると、前述のステップS11と同様、TNEWキー記憶領域421の全ての検出キーKTNEWのデータを新たな確定キーKCURのデータとしてCURキー記憶領域422に書き込む(ステップS31)。
If it is determined in step S30 that TNEWKEY-NO ≠ CURKEY-NO, as in step S11 described above, the data of all the detection keys KTNEW in the TNEW
そして、前述のステップS12と同様、割り込み信号をホストCPU5に送信することにより、検出キーKTNEWが確定キーKCURから変化したこと、またはキー数上限結果データが発生していることをホストCPU5に通知して(ステップS32)、ステップS21に処理を戻す。これにより、ホストCPU5は、CURキー記憶領域422から新たなキーのデータを読み出したり、上限キー数読出領域426から読出上限キー数CURKEY−NUMLIMITを読み出したり、読出結果データ記憶領域428から読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを読み出したりする。
Then, as in step S12 described above, by sending an interrupt signal to the
〔4.実施形態の総括〕
以上のように、本実施形態に係るタッチパネル装置1は、タッチパネルコントローラ4において、ホストCPU5によって上限キー数書込領域424に一旦書込上限キー数INTFKEY−NUMLIMITとして書き込まれ、上限キー数設定領域425に設定された設定上限キー数EXECKEY−NUMLIMITに基づいて判定処理を行う。この判定処理では、TNEWキー記憶領域421の検出キー数TNEWKEY−NOが設定上限キー数EXECKEY−NUMLIMITを越えているときに検出キーの数が上限値を超えたと判定してスキャンを終える。
[4. Summary of Embodiments]
As described above, in the
また、スキャンの処理の状態に依存せずに、ホストCPU5が上限キー数書込領域424に書込上限キー数INTFKEY−NUMLIMITを書き込むことによって、所望のタイミングで検出できるキーの上限値を動的に入力することができる。これにより、検出できるキーの上限値を所望に制限することができる。
In addition, the
特に、FA機器では、誤動作できない場合があるので、キー数の上限値を設定することは有効である。例えば、1つのタッチ入力しか検出できない場合、2つ以上のタッチ入力があると、どちらが正しいか分からないので、2つ以上のタッチ入力に対して検出されたキーを無効とする。 In particular, FA devices may not be able to malfunction, so it is effective to set an upper limit value for the number of keys. For example, when only one touch input can be detected, if there are two or more touch inputs, it is not known which one is correct, and thus the detected keys for two or more touch inputs are invalidated.
上記のように構成されるタッチパネル装置1は、次のように応用することができる。例えば、入力操作用の画像を表示している状態で、画像が切り替わった直後の所定期間は上限値を0に設定しておき、画像が切り替わってから所定時間経過したときに、切り替わった画像に対する所定値に上限値を設定し直す。上記の所定期間では、設定される上限値が0であるので、タッチ入力により検出キーが上限値を超えたことが判定されるが、アプリケーションプログラムではその判定結果を無視するようにしておく。これにより、画像が切り替わってすぐの段階で、ユーザが切り替わった画像を正しく認識しないうちにタッチ入力することによる誤動作を防止することができる。そして、画像が切り替わってから所定時間経ってユーザが画像を認識できるようになると、新たに設定された上限値に基づいて、上限値を超えたか否かの判定が行われるので、通常のタッチ入力が受け付けられる。
The
上記のように、ホストCPU5が書込上限キー数INTFKEY−NUMLIMITを書き込むタイミングはスキャン処理と同期していない。このため、書込上限キー数INTFKEY−NUMLIMITを判定の上限値として用いると、1スキャンにおいて書込上限キー数INTFKEY−NUMLIMITが複数回書き替えられた場合、ホストCPU5は、どの上限値が判定に用いられたかがわからない。この結果、判定結果を受けたホストCPU5が正しい処理をすることができずに、誤動作するおそれがある。本実施形態によらずに、このような誤動作を回避するには、通常、リセット直後に上限値を設定するか、スキャンを一旦中断して上限値を設定しなおす必要がある。このため、スキャン処理を行いながら所望のタイミングで上限値を変更することができない。
As described above, the timing at which the
そこで、タッチパネル装置1では、各スキャンの開始時に、上限キー数書込領域424に書き込まれた書込上限キー数INTFKEY−NUMLIMITを、上限キー数設定領域425に設定上限キー数EXECKEY−NUMLIMITとしてコピーし、これを判定の上限値として用いている。そして、判定に用いられた設定上限キー数EXECKEY−NUMLIMITを、ホストCPU5がアクセス可能な読出結果データ記憶領域428に読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSとしてコピーする。
Therefore, in the
これにより、ホストCPU5からの書込上限キー数INTFKEY−NUMLIMITの書き込みがスキャン処理と非同期で行われても、判定に実際に使用された上限値がホストCPU5に読み取られる。したがって、判定結果を受けたホストCPU5が誤動作せずに正しい処理をすることができる。それゆえ、同時に入力可能なキー数をスキャン処理の途中で動的に変更することができる。しかも、読出結果データ記憶領域428に読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを保存しておくことにより、次のスキャンの開始時に、上限キー数設定領域425に新たな設定上限キー数EXECKEY−NUMLIMITがコピーされても、ホストCPU5が読出結果データ記憶領域428に保存された読出キー数上限判定結果CURKEY−NUMLIMIT−STATUSを確実に読み出すことができる。
As a result, even if the write upper limit key number INTFKEY-NUMLIMIT from the
なお、本実施形態では、タッチパネル装置1において同時に検出できるキーの上限値に対する判定について説明した。本発明は、同時にされた複数のタッチ入力に対する複数のキーを検出することができれば、キーボード、メンブレンスイッチ、タッチパッドなどの他の入力装置にも適用できる。
In the present embodiment, the determination with respect to the upper limit value of the key that can be simultaneously detected in the
本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.
本発明のタッチパネル装置は、同時に複数検出できるタッチ入力の上限値を外部からメモリに書き込み、実際のタッチ入力数がこの上限値より大きいか否かを判定するので、タッチ入力の上限値を必要に応じて変更する用途に好適に用いることができる。 The touch panel device of the present invention writes the upper limit value of touch inputs that can be detected simultaneously to the memory from outside and determines whether the actual number of touch inputs is larger than the upper limit value. It can use suitably for the use changed according to it.
1 タッチパネル装置
2 タッチパネル
3 駆動・検出部
4 タッチパネルコントローラ
5 ホストCPU
42 メモリ部
43 キー確定処理部
421 TNEWキー記憶領域(検出数記憶手段)
424 上限キー数書込領域(上限値記憶手段,書込領域)
425 上限キー数設定領域(上限値記憶手段,設定領域)
426 上限キー数読出領域(上限値記憶手段,読出領域)
427 検出結果データ記憶領域
428 読出結果データ記憶領域
434 判定部(判定手段)
TNEWKEY−NO キー数
INTFKEY−NUMLIMIT 書込上限キー数(上限値)
EXECKEY−NUMLIMIT 設定上限キー数(上限値,設定値)
CURKEY−NUMLIMIT 読出上限キー数(上限値,読出値)
1
42
424 Upper limit key number writing area (upper limit storage means, writing area)
425 Upper limit key number setting area (upper limit storage means, setting area)
426 Upper limit key number reading area (upper limit storage means, reading area)
427 Detection result
TNEWKEY-NO Number of keys INTFKEY-NUMLIMIT Write upper limit key number (upper limit value)
EXECKEY-NUMLIMIT Setting upper limit key number (upper limit value, setting value)
CURKEY-NUMLIMIT Read upper limit key number (upper limit value, read value)
Claims (1)
同時にタッチ入力可能なタッチ入力数の上限値を記憶する上限値記憶手段と、
前記タッチ入力の検出数を記憶する検出数記憶手段と、
前記検出数記憶手段に記憶された前記検出数が前記上限値記憶手段に記憶された前記上限値を超えたときに上限値を超えたことを判定し、前記検出数が前記上限値を超えたと判定したことを外部に通知する判定手段とを備え、
前記上限値記憶手段は、
前記上限値を書き込むために外部からアクセスできる書込領域と、
当該書込領域に書き込まれた前記上限値が前記判定手段による判定に使用するための設定値としてタッチ入力の検出の開始時にコピーされる、外部からアクセスできない設定領域と、
前記判定に使用された前記上限値が前記設定領域から読出値としてコピーされる、外部からアクセスできる読出領域とを含んでいることを特徴とするタッチパネル装置。 In a touch panel device that detects a plurality of touch inputs made simultaneously,
Upper limit storage means for storing the upper limit of the number of touch inputs that can be simultaneously touched;
Detection number storage means for storing the detection number of the touch input;
When the detected number stored in the detected number storage means exceeds the upper limit value when the detected number exceeds the upper limit value stored in the upper limit value storage means, the detected number exceeds the upper limit value. A determination means for notifying the outside of the determination ,
The upper limit storage means is
A write area accessible from outside to write the upper limit;
The upper limit value written in the writing area is copied at the start of detection of touch input as a setting value for use in the determination by the determination means, and a setting area that cannot be accessed from the outside;
A touch panel device comprising: a read area accessible from outside, wherein the upper limit value used for the determination is copied as a read value from the setting area .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009267966A JP5271240B2 (en) | 2009-11-25 | 2009-11-25 | Touch panel device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009267966A JP5271240B2 (en) | 2009-11-25 | 2009-11-25 | Touch panel device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011113221A JP2011113221A (en) | 2011-06-09 |
JP5271240B2 true JP5271240B2 (en) | 2013-08-21 |
Family
ID=44235520
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009267966A Active JP5271240B2 (en) | 2009-11-25 | 2009-11-25 | Touch panel device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5271240B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5738707B2 (en) * | 2011-07-28 | 2015-06-24 | 株式会社ジャパンディスプレイ | Touch panel |
KR102320767B1 (en) * | 2015-02-23 | 2021-11-02 | 삼성디스플레이 주식회사 | Touch sensing apparatus and method for driving the same |
US11175782B2 (en) | 2018-05-11 | 2021-11-16 | Mitsubishi Electric Corporation | Input control device and input control method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3379873B2 (en) * | 1996-04-05 | 2003-02-24 | 株式会社デジタル | Matrix type touch panel input device |
JP2000099269A (en) * | 1998-09-22 | 2000-04-07 | Nec Corp | Input device for touch panel corresponding to mouse |
JP4430842B2 (en) * | 2001-10-01 | 2010-03-10 | 株式会社リコー | Input processing method, display device with coordinate input function, and program |
KR100771626B1 (en) * | 2006-04-25 | 2007-10-31 | 엘지전자 주식회사 | Terminal device and method for inputting instructions thereto |
KR101383709B1 (en) * | 2007-03-07 | 2014-04-09 | 삼성디스플레이 주식회사 | Display device and driving method thereof |
JP2009134408A (en) * | 2007-11-29 | 2009-06-18 | Smk Corp | Optical touch-panel input device |
-
2009
- 2009-11-25 JP JP2009267966A patent/JP5271240B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011113221A (en) | 2011-06-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2010149224A1 (en) | Method, apparatus and computer program code handling a user input | |
KR102326766B1 (en) | Display device and method of indicating selected at least one of keys | |
JP2013250596A (en) | Touch sensor system | |
JP5102362B2 (en) | Plant monitoring and control system | |
JP5271240B2 (en) | Touch panel device | |
JP2000066817A (en) | Keyboard device | |
US20190339858A1 (en) | Method and apparatus for adjusting virtual key of mobile terminal | |
US10019919B2 (en) | Processing apparatus, command generation method and storage medium | |
JP2015179311A (en) | Input device, input control method, and computer program | |
US10895935B2 (en) | Touch panel device, touch panel device control method, program, and storage medium storing the program | |
US20110199309A1 (en) | Input Device | |
CN103460167A (en) | Information processing apparatus and information processing method, recording medium, and program | |
JP2009271851A (en) | Information processor, pointer display method thereof, and program executable by computer | |
JP5271217B2 (en) | Touch detection device for touch panel and touch detection method thereof | |
WO2015170371A1 (en) | Information processing device | |
JP4181482B2 (en) | Electronic control unit | |
JP5174771B2 (en) | Method for confirming completion of input of handwritten data in electronic blackboard system | |
JP2536517B2 (en) | Cursor movement key control system | |
EP3506056A1 (en) | System and method for providing haptic feedback when operating a touch screen | |
JP2004362518A (en) | Touch panel input device with cleaning mode | |
WO1990007739A1 (en) | Control method for robot | |
JP2008107925A (en) | Object detection processing circuit, image processing system and electronic information device | |
CN107924251B (en) | Method and device for reducing power consumption of touch screen device | |
JP3365284B2 (en) | Touch panel pressed position detection method and device | |
JP2020067735A (en) | Touch panel device, control method of touch panel device, program, and storage medium storing program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110909 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120808 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120821 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20121017 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130423 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130510 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5271240 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |