JP7257248B2 - Touch panel controller and program - Google Patents

Touch panel controller and program Download PDF

Info

Publication number
JP7257248B2
JP7257248B2 JP2019092918A JP2019092918A JP7257248B2 JP 7257248 B2 JP7257248 B2 JP 7257248B2 JP 2019092918 A JP2019092918 A JP 2019092918A JP 2019092918 A JP2019092918 A JP 2019092918A JP 7257248 B2 JP7257248 B2 JP 7257248B2
Authority
JP
Japan
Prior art keywords
touch
operation level
coordinate information
level
touch position
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
Application number
JP2019092918A
Other languages
Japanese (ja)
Other versions
JP2020187632A (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.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component 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 Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2019092918A priority Critical patent/JP7257248B2/en
Publication of JP2020187632A publication Critical patent/JP2020187632A/en
Application granted granted Critical
Publication of JP7257248B2 publication Critical patent/JP7257248B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Description

本発明は、タッチパネル用コントローラ及びプログラムに関する。 The present invention relates to a touch panel controller and program.

従来より、タッチ操作の誤入力を防止することができる技術が知られている。例えば、特許文献1では、タッチパネルに表示されるボタン間に、誤入力防止のための低感度領域を設定している。特許文献2では、タッチされた位置に応じて同定のための境界を変動し、この変動した境界に基づいて次のタッチによる入力の同定を行うことによって、誤入力を防止する。特許文献3では、2つのアイコン領域の間に、アイコンの選択の状態の変化を反映しない中間帯が設置されている。 Conventionally, there has been known a technique capable of preventing erroneous input of touch operations. For example, in Patent Document 1, a low-sensitivity region is set between buttons displayed on a touch panel to prevent erroneous input. In Japanese Patent Application Laid-Open No. 2002-200000, an erroneous input is prevented by changing the boundary for identification according to the touched position and identifying the input by the next touch based on the changed boundary. In Patent Document 3, an intermediate band is provided between two icon areas that does not reflect changes in icon selection states.

特開2015-138287号公報JP 2015-138287 A 国際公開第2003/027826号WO2003/027826 特開平11-127399号公報JP-A-11-127399

キーボードのように複数のボタンが隣接して配置され、タッチパネルの操作時に指が滑ると、目的のボタン以外の隣接するボタンに移動してしまう場合がある。特に、ボタン間の領域が無い場合やボタン間の領域が小さい場合には、指が目的のボタン以外の隣接するボタンに移動してしまうことがあり、必ずしもタッチ操作の誤入力を防止することができない課題がある。 A plurality of buttons are arranged adjacently like a keyboard, and if a finger slips during operation of a touch panel, it may move to an adjacent button other than the target button. In particular, when there is no area between buttons or when the area between buttons is small, the finger may move to an adjacent button other than the target button, and it is not always possible to prevent erroneous touch operation input. There is a task that cannot be done.

本発明は、タッチ操作の誤入力を防止することができるタッチパネル用コントローラ及びプログラムを提供することを目的とする。 An object of the present invention is to provide a touch panel controller and a program capable of preventing erroneous touch operation input.

上記目的を達成するため、明細書に開示されたタッチパネル用コントローラは、タッチ位置、タッチオン及びタッチオフを検出する検出手段と、前記タッチ位置に対応するオブジェクトの操作レベルを取得する取得手段と、前記取得手段で取得された今回の操作レベルと前回の操作レベルが所定の関係になると、当該所定の関係になった位置の座標情報を前記タッチオフの座標情報として外部装置に出力し、前記検出手段が前記タッチオフを検出するまで前記検出手段で検出されたタッチ位置の座標情報を前記外部装置に出力しない出力制御手段とを備えることを特徴とする。 To achieve the above object, the touch panel controller disclosed in the specification includes detection means for detecting a touch position, touch-on and touch-off; acquisition means for acquiring an operation level of an object corresponding to the touch position; When the current operation level and the previous operation level acquired by the means have a predetermined relationship, the coordinate information of the position having the predetermined relationship is output to an external device as the touch-off coordinate information, and the detection means detects the and output control means for not outputting the coordinate information of the touch position detected by the detection means to the external device until touch-off is detected.

本発明によれば、タッチ操作の誤入力を防止することができる。 According to the present invention, erroneous input of touch operation can be prevented.

タッチパネルとメイン装置とを備える情報処理装置の構成図である。1 is a configuration diagram of an information processing device including a touch panel and a main device; FIG. 図1のタッチパネルに表示されるアプリケーションの一例を示す図である。2 is a diagram showing an example of an application displayed on the touch panel in FIG. 1; FIG. オブジェクトと領域情報と操作レベルとの関係を示す図である。FIG. 4 is a diagram showing the relationship between objects, area information, and operation levels; (A)はオブジェクト上でタッチ操作する第1の例を示す図であり、(B)は図4(A)のオブジェクトに対して設定された操作レベルを示す図である。(C)はオブジェクト上でタッチ操作する第2の例を示す図であり、(D)は図4(C)のオブジェクトに対して設定された操作レベルを示す図である。(E)はオブジェクト上でタッチ操作する第3の例を示す図であり、(F)は図4(E)のオブジェクトに対して設定された操作レベルを示す図である。(G)はオブジェクト上でタッチ操作する第4の例を示す図であり、(H)は図4(G)のオブジェクトに対して設定された操作レベルを示す図である。4A is a diagram showing a first example of touch operation on an object, and FIG. 4B is a diagram showing operation levels set for the object in FIG. 4A. FIG. (C) is a diagram showing a second example of a touch operation on an object, and (D) is a diagram showing operation levels set for the object in FIG. 4(C). (E) is a diagram showing a third example of a touch operation on an object, and (F) is a diagram showing operation levels set for the object in FIG. 4(E). (G) is a diagram showing a fourth example of touch operation on an object, and (H) is a diagram showing operation levels set for the object in FIG. 4 (G). コントローラで実行されるタッチ入力処理を示すフローチャートである。4 is a flowchart showing touch input processing executed by a controller;

以下、図面を参照しながら本発明の実施の形態を説明する。 BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、タッチパネルとメイン装置とを備える情報処理装置の構成図である。図1の情報処理装置10は、表示機能及びキー入力機能を有するタッチパネル1と、入力データを処理するメイン装置5とを備えている。情報処理装置10とは、タッチパネルを備える装置であり、例えば、パソコン、サーバ、スマホ、家電(冷蔵庫及び洗濯機などを含む)、キヨスク端末、又はATMなどである。 FIG. 1 is a configuration diagram of an information processing device including a touch panel and a main device. An information processing apparatus 10 of FIG. 1 includes a touch panel 1 having a display function and a key input function, and a main device 5 for processing input data. The information processing device 10 is a device having a touch panel, and is, for example, a personal computer, a server, a smartphone, a home appliance (including a refrigerator, a washing machine, etc.), a kiosk terminal, an ATM, or the like.

タッチパネル1は、タッチ入力の位置を検出し、各種処理を実行するコントローラ2を備えている。コントローラ2は、各種処理を実行するためのプログラムやデータを記憶し、プログラムを実行するワーキングエリアとして機能するメモリ3を備えている。コントローラ2は、検出手段、取得手段及び出力制御手段として機能し、メモリ3は記憶手段として機能する。尚、図示しないが、タッチパネル1は、基板や透明導電膜などを備えている。コントローラ2は、タッチパネル1に取り外し可能に装着されていてもよいし、タッチパネル1に固定されていてもよい。 The touch panel 1 includes a controller 2 that detects the position of touch input and executes various processes. The controller 2 has a memory 3 that stores programs and data for executing various processes and functions as a working area for executing the programs. The controller 2 functions as detection means, acquisition means and output control means, and the memory 3 functions as storage means. Although not shown, the touch panel 1 includes a substrate, a transparent conductive film, and the like. The controller 2 may be detachably attached to the touch panel 1 or may be fixed to the touch panel 1 .

メイン装置5は、タッチパネル1から各種のデータを入力し、様々な処理を実行する。メイン装置5は、コントローラ2にUSBケーブル8を介して接続されるCPU(Central Processing Unit)6と、プログラム、アプリケーション並びにデータを格納するメモリ7とを備えている。尚、メイン装置5は、CPU6に代えて、プロセッサ、専用の演算IC又はASIC(Application Specific Integrated Circuit)などを備えていてもよい。 The main device 5 receives various data from the touch panel 1 and executes various processes. The main device 5 includes a CPU (Central Processing Unit) 6 connected to the controller 2 via a USB cable 8, and a memory 7 for storing programs, applications and data. Note that the main device 5 may be provided with a processor, a dedicated arithmetic IC or an ASIC (Application Specific Integrated Circuit), etc., instead of the CPU 6 .

図2は、タッチパネル1に表示されるアプリケーションの一例を示す図である。アプリケーション11は、メモリ7に格納され、CPU6により実行される。アプリケーション11画面は、背景12、表示エリア13及び複数のボタン14を備えている。図2のボタン14は数値キーなどである。背景12、表示エリア13及びボタン14は各々オブジェクトであり、各オブジェクトには操作レベルが設定されている。各オブジェクトに関連付けられている操作レベルは、例えば、アプリケーション11で変更可能である。アプリケーション11は、図2のような電卓アプリケーションに限定されるものではない。 FIG. 2 is a diagram showing an example of an application displayed on the touch panel 1. As shown in FIG. Application 11 is stored in memory 7 and executed by CPU 6 . The application 11 screen has a background 12 , a display area 13 and a plurality of buttons 14 . Buttons 14 in FIG. 2 are numeric keys or the like. The background 12, the display area 13, and the button 14 are objects, and each object has an operation level. The operation level associated with each object can be changed by the application 11, for example. The application 11 is not limited to the calculator application as shown in FIG.

図3は、オブジェクトと領域情報と操作レベルとの関係を示す図である。例えば、図3に示すように、アプリケーション11は、各オブジェクトと領域情報と操作レベルとを関連付けたテーブルデータを備えている。領域情報はオブジェクトに対応する領域を示すデータであり、例えば、ボタン14に対応する領域のデータは、ボタン14の4隅に対応する座標(X1,Y1)(X2,Y1)(X1,Y2)(X2,Y2)として設定される。 FIG. 3 is a diagram showing the relationship between objects, area information, and operation levels. For example, as shown in FIG. 3, the application 11 has table data that associates each object, area information, and operation level. The area information is data indicating the area corresponding to the object. For example, the data of the area corresponding to the button 14 is the coordinates (X1, Y1) (X2, Y1) (X1, Y2) corresponding to the four corners of the button 14. It is set as (X2, Y2).

コントローラ2は、タッチ位置の座標情報を検出すると、タッチ位置に対応するオブジェクトの操作レベルをCPU6に問い合わせる。CPU6は、コントローラ2からタッチ位置の座標情報を受信すると、図3のテーブルデータに基づいて、タッチ位置に該当するオブジェクトの操作レベルを特定し、コントローラ2に返信する。 Upon detecting the coordinate information of the touch position, the controller 2 inquires of the CPU 6 about the operation level of the object corresponding to the touch position. Upon receiving the coordinate information of the touch position from the controller 2, the CPU 6 specifies the operation level of the object corresponding to the touch position based on the table data of FIG.

コントローラ2は、図3のテーブルデータをCPU6から予め取得し、メモリ3に格納していてもよい。この場合、コントローラ2は、タッチ位置の座標情報を検出すると、CPU6に問い合わせることなく、メモリ3に格納されたテーブルデータを使ってタッチ位置に対応するオブジェクトの操作レベルを取得できる。 The controller 2 may acquire the table data of FIG. 3 from the CPU 6 in advance and store it in the memory 3 . In this case, when the controller 2 detects the coordinate information of the touch position, the controller 2 can acquire the operation level of the object corresponding to the touch position using the table data stored in the memory 3 without querying the CPU 6 .

図4(A)はオブジェクト上でタッチ操作する第1の例を示す図であり、図4(B)は図4(A)のオブジェクトに対して設定された操作レベルを示す図である。図4(C)はオブジェクト上でタッチ操作する第2の例を示す図であり、図4(D)は図4(C)のオブジェクトに対して設定された操作レベルを示す図である。図4(E)はオブジェクト上でタッチ操作する第3の例を示す図であり、図4(F)は図4(E)のオブジェクトに対して設定された操作レベルを示す図である。図4(G)はオブジェクト上でタッチ操作する第4の例を示す図であり、図4(H)は図4(G)のオブジェクトに対して設定された操作レベルを示す図である。 FIG. 4A is a diagram showing a first example of a touch operation on an object, and FIG. 4B is a diagram showing operation levels set for the object in FIG. 4A. FIG. 4(C) is a diagram showing a second example of touch operation on an object, and FIG. 4(D) is a diagram showing operation levels set for the object in FIG. 4(C). FIG. 4(E) is a diagram showing a third example of a touch operation on an object, and FIG. 4(F) is a diagram showing operation levels set for the object in FIG. 4(E). FIG. 4(G) is a diagram showing a fourth example of touch operation on an object, and FIG. 4(H) is a diagram showing operation levels set for the object in FIG. 4(G).

図4(A)、図4(C)、図4(E)及び図4(G)では、操作者の指の動きが矢印で示されており、操作者の指がボタン14a、背景12及びボタン14bのオブジェクト上をスライドする。 4(A), 4(C), 4(E) and 4(G), the movement of the operator's finger is indicated by arrows, and the operator's finger moves to the button 14a, background 12 and Slide on the button 14b object.

図4(A)及び図4(B)では、ボタン14a、背景12及びボタン14bの全オブジェクトに対して同じ操作レベル1が設定されている。隣接するオブジェクト同士の操作レベルが同一である場合には、タッチ操作は制限されることなく、自由な操作が可能である。操作者の指がボタン14a、背景12及びボタン14bのオブジェクト上をスライドした場合、コントローラ2は、ボタン14a、背景12及びボタン14bの各タッチ位置の座標情報を順番にCPU6に出力し、ボタン14aおよびボタン14bに情報や機能が設定されている場合にはボタン14a、ボタン14bの入力が有効となる。操作レベルは、高レベル「5」から低レベル「0」まで設定可能であるが、これらの数値に限定されるものではない。 In FIGS. 4A and 4B, the same operation level 1 is set for all objects of button 14a, background 12 and button 14b. When the operation levels of adjacent objects are the same, the touch operation is not restricted and can be freely operated. When the operator's finger slides over the objects of the button 14a, the background 12, and the button 14b, the controller 2 sequentially outputs the coordinate information of the respective touch positions of the button 14a, the background 12, and the button 14b to the CPU 6, and the button 14a. And when information and functions are set in the button 14b, the inputs of the buttons 14a and 14b are enabled. The operation level can be set from high level "5" to low level "0", but is not limited to these numerical values.

図4(C)及び図4(D)では、ボタン14a、背景12及びボタン14bのオブジェクトに対して操作レベル5,3,1がそれぞれ設定されている。オブジェクトの操作レベルが高レベルから低レベルへ移行する場合には、タッチ操作は制限されず、操作者の指がボタン14a、背景12及びボタン14bのオブジェクト上をスライドした場合に、コントローラ2は、ボタン14a、背景12及びボタン14bの各タッチ位置の座標情報を順番にCPU6に出力する。 In FIGS. 4C and 4D, operation levels 5, 3, and 1 are set for the button 14a, background 12, and button 14b objects, respectively. When the operation level of the object changes from high level to low level, the touch operation is not restricted, and when the operator's finger slides over the objects of the button 14a, the background 12 and the button 14b, the controller 2 The coordinate information of each touch position of the button 14a, the background 12 and the button 14b is output to the CPU 6 in order.

オブジェクトの操作レベルが低レベルから高レベルへ移行する場合には、タッチ操作が制限され、自由な操作ができない場合がある。 When the operation level of an object shifts from a low level to a high level, touch operations may be restricted and free operations may not be possible.

図4(E)及び図4(F)では、ボタン14a、背景12及びボタン14bのオブジェクトに対して操作レベル1,2,3がそれぞれ設定されている。隣接するオブジェクト同士の操作レベルの差が所定値(例えば1)以下である場合には、タッチ操作は制限されない。図4(E)及び図4(F)では、指がボタン14aから背景12へ移行しても、あるいは背景12からボタン14bへ移行しても、隣接するオブジェクト同士の操作レベルの差が1なので、タッチ操作は制限されない。 In FIGS. 4(E) and 4(F), operation levels 1, 2, and 3 are set for the objects of button 14a, background 12, and button 14b, respectively. If the difference in operation level between adjacent objects is equal to or less than a predetermined value (eg, 1), touch operations are not restricted. In FIGS. 4E and 4F, even if the finger moves from the button 14a to the background 12 or from the background 12 to the button 14b, the operation level difference between the adjacent objects is 1. , touch operation is not restricted.

一方、図4(G)及び図4(H)では、ボタン14a、背景12及びボタン14bのオブジェクトに対して操作レベル1,3,1がそれぞれ設定されている。指がボタン14aから背景12へ移動した場合には、指が低レベルのオブジェクトから高レベルのオブジェクトに移動し、且つボタン14aと背景12とに設定されている操作レベルの差が2なので、タッチ操作が制限される。具体的には、指がボタン14aの外側に移動したら、コントローラ2はボタン14aと背景12との境界である図4(G)の点Pの座標をボタン14aのタッチオフ座標としてCPU6に出力する。以後、コントローラ2は背景12及びボタン14bのタッチ位置の座標情報をCPU6に出力しない。従って、ボタン14aの入力のみが有効となり、背景12、あるいはボタン14bへの入力は無効となる。このように、オブジェクトの操作レベルが低レベルから高レベルへ移行し、且つ隣接するオブジェクト同士の操作レベルの差が2以上の場合には、コントローラ2は、指が高レベルのオブジェクトに移動すると同時に操作レベルの差が所定値を超えた位置の座標情報をタッチオフ座標としてCPU6に出力し、それ以降は、例え指が同レベル又は低レベルのオブジェクトに移動したとしてもタッチ位置の座標情報をCPU6に出力しない。 On the other hand, in FIGS. 4(G) and 4(H), operation levels 1, 3, and 1 are set for the objects of button 14a, background 12, and button 14b, respectively. When the finger moves from the button 14a to the background 12, the finger moves from a low-level object to a high-level object, and the difference between the operation levels set between the button 14a and the background 12 is 2. Operation is restricted. Specifically, when the finger moves outside the button 14a, the controller 2 outputs to the CPU 6 the coordinates of the point P in FIG. After that, the controller 2 does not output to the CPU 6 the coordinate information of the background 12 and the touch position of the button 14b. Therefore, only the input to the button 14a is valid, and the input to the background 12 or the button 14b is invalid. In this way, when the operation level of an object transitions from a low level to a high level, and the difference in operation level between adjacent objects is 2 or more, the controller 2 simultaneously moves the finger to the high-level object. The coordinate information of the position where the difference in operation level exceeds a predetermined value is output to the CPU 6 as touch-off coordinates, and thereafter, even if the finger moves to an object of the same level or a lower level, the coordinate information of the touch position is sent to the CPU 6. No output.

このように、本実施の形態では、オブジェクトの操作レベルが低レベルから高レベルへ移行した場合、あるいは隣接するオブジェクト同士の操作レベルの差が所定値以下である場合にはタッチ操作は制限されないが、オブジェクトの操作レベルが低レベルから高レベルへ移行し、且つ隣接するオブジェクト同士の操作レベルの差が所定値を超えればタッチ操作は制限され、指がタッチパネルから離れるタッチオフが検出されるまでタッチ入力の操作は無効になる。 As described above, in the present embodiment, when the operation level of an object transitions from a low level to a high level, or when the difference in operation level between adjacent objects is equal to or less than a predetermined value, the touch operation is not restricted. When the operation level of an object changes from a low level to a high level and the difference between the operation levels of adjacent objects exceeds a predetermined value, the touch operation is restricted until touch-off is detected when the finger leaves the touch panel. operation is disabled.

尚、本実施形態では、オブジェクトの操作レベルが低レベルから高レベルへ移行し、且つ隣接するオブジェクト同士の操作レベルの差が所定値を超えればタッチ操作を制限しているが、本実施形態はこれに制限されるものではない。例えば、オブジェクトの操作レベルが高レベルから低レベルへ移行し、且つ隣接するオブジェクト同士の操作レベルの差が所定値を超えたときにタッチ操作を制限してもよい。タッチ操作を制限する条件は、アプリケーション11の設定又は図3のテーブルデータの設定などによって適宜変更可能である。 In this embodiment, if the operation level of an object changes from a low level to a high level and the difference in operation level between adjacent objects exceeds a predetermined value, the touch operation is restricted. It is not limited to this. For example, touch operations may be restricted when the operation level of an object transitions from a high level to a low level and the difference in operation level between adjacent objects exceeds a predetermined value. The conditions for restricting the touch operation can be appropriately changed by setting the application 11, setting the table data in FIG. 3, or the like.

図5は、コントローラ2で実行されるタッチ入力処理を示すフローチャートである。 FIG. 5 is a flowchart showing touch input processing executed by the controller 2. As shown in FIG.

コントローラ2は、タッチパネル1にかかる電圧を監視することで、タッチオンが検出されたか否かを判別する(S1)。タッチオンが検出された場合には(S1でYES)、コントローラ2は後述するタッチオフの座標情報をCPU6に出力済みであるか否かを判別する(S2)。タッチオフの座標情報をCPU6に出力済みである場合には(S2でYES)、手順はS1に戻る。 The controller 2 determines whether touch-on is detected by monitoring the voltage applied to the touch panel 1 (S1). When touch-on is detected (YES in S1), the controller 2 determines whether or not touch-off coordinate information, which will be described later, has already been output to the CPU 6 (S2). If the touch-off coordinate information has already been output to the CPU 6 (YES in S2), the procedure returns to S1.

タッチオフの座標情報をCPU6に出力済みでない場合には(S2でNO)、コントローラ2は、タッチパネル1上のタッチ位置の座標を検出する(S3)。コントローラ2は、検出したタッチ位置の座標情報をCPU6に出力し、タッチ位置に対応するオブジェクトの操作レベルをCPU6から取得する(S4)。テーブルデータが予めメモリ3に格納されている場合には、コントローラ2はCPU6に問い合わせることなく、メモリ3内のテーブルデータを使ってタッチ位置に対応するオブジェクトの操作レベルを取得してもよい。 If the touch-off coordinate information has not been output to the CPU 6 (NO in S2), the controller 2 detects the coordinates of the touch position on the touch panel 1 (S3). The controller 2 outputs coordinate information of the detected touch position to the CPU 6, and acquires the operation level of the object corresponding to the touch position from the CPU 6 (S4). If the table data is stored in the memory 3 in advance, the controller 2 may use the table data in the memory 3 to acquire the operation level of the object corresponding to the touch position without inquiring the CPU 6 .

コントローラ2は、前回判別した操作レベルが0であるか否かを判別する(S5)。タッチパネル1がタッチされていない状態では、操作レベルとして便宜上0が設定されている。一方、すでにタッチパネル1がタッチされている場合には、前回タッチしたオブジェクトの操作レベルが設定されている。前回の操作レベルが0である場合には(S5でYES)、コントローラ2は、今回のタッチ位置の座標情報をCPU6に出力する(S7)。メモリ3には、前回のタッチ位置の操作レベルと今回のタッチ位置の操作レベルが保持されるため、コントローラ2は、前回のタッチ位置の操作レベルと今回のタッチ位置の操作レベルを更新して、メモリ3に更新後の操作レベルを保持する(S8)。そして、手順はS1に戻る。 The controller 2 determines whether or not the previously determined operation level is 0 (S5). When the touch panel 1 is not touched, the operation level is set to 0 for convenience. On the other hand, if the touch panel 1 has already been touched, the operation level of the previously touched object is set. If the previous operation level is 0 (YES in S5), the controller 2 outputs coordinate information of the current touch position to the CPU 6 (S7). Since the memory 3 holds the operation level of the previous touch position and the operation level of the current touch position, the controller 2 updates the operation level of the previous touch position and the operation level of the current touch position. The updated operation level is held in the memory 3 (S8). Then, the procedure returns to S1.

一方、前回の操作レベルが0でない場合には(S5でNO)、コントローラ2は、前回のタッチ位置の操作レベルが今回のタッチ位置の操作レベル以上であるか否かを判別する(S6)。S6では、例えば、指があるオブジェクトから隣接するオブジェクトに移動したときに操作レベルが増加したのか又は減少したのかを判断している(図4(A)~(H)参照)。前回のタッチ位置の操作レベルが今回のタッチ位置の操作レベル以上である場合には(S6でYES)、手順はS7に進み、タッチ入力が有効なものとして今回のタッチ位置の座標をCPU6に出力する。指があるオブジェクトから隣接するオブジェクトに移動したとき、今回と前回とのオブジェクトの操作レベルが一定であるか又は減少する場合、S6でYES→S7と処理され、タッチ操作は制限されない。 On the other hand, if the previous operation level is not 0 (NO in S5), the controller 2 determines whether the operation level of the previous touch position is equal to or higher than the operation level of the current touch position (S6). In S6, for example, it is determined whether the operation level increases or decreases when the finger moves from a certain object to an adjacent object (see FIGS. 4A to 4H). If the operation level of the previous touch position is equal to or higher than the operation level of the current touch position (YES in S6), the procedure proceeds to S7, and the coordinates of the current touch position are output to the CPU 6 assuming that the touch input is valid. do. When the finger moves from a certain object to an adjacent object, if the operation level of the object is constant or decreases between this time and the previous time, the processing is YES in S6→S7, and the touch operation is not restricted.

一方、前回のタッチ位置の操作レベルが今回のタッチ位置の操作レベルよりも小さい場合には(S6でNO)、コントローラ2は、前回のタッチ位置の操作レベルと今回のタッチ位置の操作レベルとの差が所定値以下であるか否かを判別する(S9)。S6でNOと判断されたときには操作レベルが増加しているので、S9で操作レベルの増加量が図4(F)のように所定値以下であるのか又は図4(H)のように所定値を超えるのかを判断している。 On the other hand, if the operation level of the previous touch position is lower than the operation level of the current touch position (NO in S6), the controller 2 determines the difference between the operation level of the previous touch position and the operation level of the current touch position. It is determined whether or not the difference is equal to or less than a predetermined value (S9). When it is determined NO in S6, since the operation level has increased, it is determined in S9 whether the amount of increase in the operation level is equal to or less than a predetermined value as shown in FIG. 4(F) or by a predetermined value as shown in FIG. It is determined whether the

前回のタッチ位置の操作レベルと今回のタッチ位置の操作レベルとの差が所定値以下である場合には(S9でYES)、手順はS7に進む。例えば、指があるオブジェクトから隣接するオブジェクトに移動した場合、操作レベルが増加したけれどもS9でYES→S7の処理で操作レベルの差が所定値以下であると判断されればタッチ操作は制限されない。 If the difference between the operation level of the previous touch position and the operation level of the current touch position is equal to or less than the predetermined value (YES in S9), the procedure proceeds to S7. For example, when the finger moves from a given object to an adjacent object, the touch operation is not restricted if the operation level increases but the difference in operation level is judged to be less than a predetermined value in the processing of YES in S9→S7.

前回のタッチ位置の操作レベルと今回のタッチ位置の操作レベルとの差が所定値を超えた場合には(S9でNO)、コントローラ2はタッチ入力を無効なものとし、操作レベルの差が所定値を超えた位置の座標情報をタッチオフ座標としてCPU6に出力する(S10)。例えば、指があるオブジェクトから隣接するオブジェクトに移動した結果、操作レベルが所定値を超えて増加した場合、コントローラ2は、S9でNO→S10の処理で操作レベルが所定値を超えた位置の座標情報をタッチオフの座標情報としてCPU6に出力する。そして、コントローラ2は、メモリ3に保持された、前回のタッチ位置の操作レベル及び今回のタッチ位置の操作レベルを0にクリアする(S11)。そして、手順はS1に戻る。 If the difference between the operation level at the previous touch position and the operation level at the current touch position exceeds a predetermined value (NO in S9), the controller 2 invalidates the touch input, and the difference in operation level reaches the predetermined value. The coordinate information of the position exceeding the value is output to the CPU 6 as touch-off coordinates (S10). For example, when the operation level increases beyond a predetermined value as a result of moving the finger from a given object to an adjacent object, the controller 2 determines the coordinates of the position where the operation level exceeds the predetermined value in the processing from NO in S9 to S10. The information is output to the CPU 6 as touch-off coordinate information. Then, the controller 2 clears the operation level of the previous touch position and the operation level of the current touch position held in the memory 3 to 0 (S11). Then, the procedure returns to S1.

S1に戻り、タッチオン状態であることが検出され(S1でYES)たとき、S10でタッチオフの座標情報をCPU6に出力済みである場合には(S2でYES)手順は再度S1に戻る。S1でYES→S2でYES→S1のループ処理により、図4(G)でコントローラ2がタッチオフの座標情報をCPU6に出力した後、操作者の指がタッチオン状態を継続してもタッチ位置の座標はCPU6に出力されない。 Returning to S1, when the touch-on state is detected (YES in S1), if the touch-off coordinate information has already been output to the CPU 6 in S10 (YES in S2), the procedure returns to S1 again. After the controller 2 outputs touch-off coordinate information to the CPU 6 in FIG. is not output to the CPU 6.

S1でタッチオンが検出されない場合、言い換えれば指がタッチパネルから離れた、あるいは未だタッチパネルがタッチされていない場合には(S1でNO)、コントローラ2はS10でタッチオフの座標情報をCPU6に出力済みであるか否かを判別する(S12)。S10でタッチオフの座標情報をCPU6に出力済みである場合には(S12でYES)、コントローラ2はメモリ3内のタッチオン及びタッチオフの出力情報をクリアし(S14)、手順はS1に戻る。S14の処理では、新たなタッチ入力に備えるために、タッチオフの座標情報をCPU6に出力済みであることを示す情報などがメモリ3内からクリアされる。 If touch-on is not detected in S1, in other words, if the finger has left the touch panel or the touch panel has not yet been touched (NO in S1), the controller 2 has output touch-off coordinate information to the CPU 6 in S10. (S12). If the touch-off coordinate information has already been output to the CPU 6 in S10 (YES in S12), the controller 2 clears the touch-on and touch-off output information in the memory 3 (S14), and the procedure returns to S1. In the process of S14, in order to prepare for a new touch input, information such as information indicating that touch-off coordinate information has been output to the CPU 6 is cleared from the memory 3. FIG.

一方、タッチオフの座標情報をCPU6に出力済みでない場合には(S12でNO)、コントローラ2は、タッチ位置の座標情報をCPU6に出力済みであるか否かを判別する(S13)。タッチ位置の座標情報をCPU6に出力済みである場合には(S13でYES)、手順はS10に進み、S1でタッチオフと判断されたときのタッチ位置の座標をCPUに出力する。S13でYES→S10の処理により、例えば指がスライドせずにボタン14aから離れた場合に、指が離れた位置の座標情報をコントローラ2がタッチオフ座標としてCPU6に出力する。タッチ位置の座標情報をCPU6に出力していない場合には(S13でNO)、手順はS1に戻る。S13でNO→S1の処理がループする場合、未だタッチ入力がされていないことを示している。 On the other hand, if the touch-off coordinate information has not been output to the CPU 6 (NO in S12), the controller 2 determines whether or not the touch position coordinate information has been output to the CPU 6 (S13). If the coordinate information of the touch position has already been output to the CPU 6 (YES in S13), the procedure proceeds to S10, and the coordinates of the touch position when the touch-off is determined in S1 is output to the CPU. YES in S13→S10, for example, when the finger is lifted from the button 14a without sliding, the controller 2 outputs the coordinate information of the finger lifted position to the CPU 6 as touch-off coordinates. If the coordinate information of the touch position has not been output to the CPU 6 (NO in S13), the procedure returns to S1. If the processing of NO in S13→S1 loops, it means that the touch input has not yet been performed.

以上説明したように、本実施の形態によれば、コントローラ2は、タッチ位置、タッチオン及びタッチオフを検出し(S1,S3)、タッチ位置に対応するオブジェクトの操作レベルを取得する(S4)。そして、今回の操作レベルと前回の操作レベルが所定の関係になると、当該所定の関係になった位置の座標情報をタッチオフの座標情報としてCPU6に出力し(S10)、指がタッチパネル1から離れてタッチオフを検出するまで、S1でタッチオンが検出されたタッチ位置の座標情報をCPU6に出力しない(S1でYES→S2でYES→S1)。 As described above, according to the present embodiment, the controller 2 detects touch positions, touch-on and touch-off (S1, S3), and acquires the operation level of the object corresponding to the touch positions (S4). Then, when the current operation level and the previous operation level reach a predetermined relationship, the coordinate information of the position where the predetermined relationship is established is output to the CPU 6 as touch-off coordinate information (S10). Until a touch-off is detected, the coordinate information of the touch position where the touch-on is detected in S1 is not output to the CPU 6 (YES in S1→YES in S2→S1).

従って、操作者が目的のボタンの操作レベルとそれ以外の隣接するボタンの操作レベルとを適切に設定しておけば、たとえ、指が滑って目的のボタン以外のボタンに移動してしまっても、移動先のボタンのタッチ位置の座標情報はCPU6に出力されない。従って、タッチ操作の誤入力を防止することができる。また、今回の操作レベルと前回の操作レベルが所定の関係にならない場合には、タッチ操作は制限されることなく、自由な操作が可能である。 Therefore, if the operator appropriately sets the operation level of the target button and the operation levels of other adjacent buttons, even if the finger slips and moves to a button other than the target button, , the coordinate information of the touch position of the destination button is not output to the CPU 6 . Therefore, erroneous input of touch operation can be prevented. Further, when the current operation level and the previous operation level do not have a predetermined relationship, the touch operation is not restricted, and free operation is possible.

また、本実施の形態では、単に誤入力を防止するだけではなく、入力を制限することができる。用途に合わせてオブジェクトに操作レベルを設定することで、誤入力防止の操作又は決まった順序でしか入力できない操作を実現できる。例えば、5つのボタン[0]~「4」が左から右に一列に配置され、5つのボタン[0]~「4」に操作レベル1~5がそれぞれ設定されているとする。操作レベル5が高レベルで、操作レベル1が低レベルであり、操作レベルが低レベルから高レベルへ移行する場合には、タッチ操作が制限され、自由な操作ができないとする。この場合、ユーザの指がボタン[0]をタッチしたまま右に動かしても、ボタン[1]~「4」の入力はできない。一方、ユーザの指がボタン[4]をタッチしたまま左に動かすと、ボタン[0]~「3」の入力は可能である。 Further, in the present embodiment, it is possible not only to prevent erroneous input but also to restrict input. By setting an operation level for an object according to its purpose, it is possible to implement an operation that prevents erroneous input or an operation that allows input only in a fixed order. For example, five buttons [0] to "4" are arranged in a line from left to right, and operation levels 1 to 5 are set for the five buttons [0] to "4", respectively. When the operation level 5 is high level and the operation level 1 is low level, and the operation level shifts from low level to high level, it is assumed that touch operation is restricted and free operation cannot be performed. In this case, even if the user's finger touches the button [0] and moves it to the right, the buttons [1] to "4" cannot be input. On the other hand, if the user's finger touches button [4] and moves it to the left, it is possible to input buttons [0] to "3".

尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 It should be noted that the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the gist of the present invention.

1 タッチパネル
2 コントローラ
3 メモリ
5 メイン装置
6 CPU
7 メモリ
10 情報処理装置
1 touch panel 2 controller 3 memory 5 main device 6 CPU
7 memory 10 information processing device

Claims (4)

タッチ位置、タッチオン及びタッチオフを検出する検出手段と、
前記タッチ位置に対応するオブジェクトの操作レベルを取得する取得手段と、
前記取得手段で取得された今回の操作レベルと前回の操作レベルが所定の関係になると、当該所定の関係になった位置の座標情報を前記タッチオフの座標情報として外部装置に出力し、前記検出手段が前記タッチオフを検出するまで前記検出手段で検出されたタッチ位置の座標情報を前記外部装置に出力しない出力制御手段と
を備えることを特徴とするタッチパネル用コントローラ。
a detection means for detecting touch position, touch-on and touch-off;
acquisition means for acquiring an operation level of an object corresponding to the touch position;
When the current operation level and the previous operation level acquired by the acquiring means are in a predetermined relationship, the coordinate information of the position where the predetermined relationship is established is output to an external device as the touch-off coordinate information, and the detecting means and output control means for not outputting the coordinate information of the touch position detected by the detecting means to the external device until the detecting means detects the touch-off.
前記今回の操作レベルと前記前回の操作レベルが前記所定の関係になっていない場合には、前記出力制御手段は前記検出手段で検出されたタッチ位置の座標情報を前記外部装置に出力することを特徴とする請求項1に記載のタッチパネル用コントローラ。 When the current operation level and the previous operation level do not meet the predetermined relationship, the output control means outputs the coordinate information of the touch position detected by the detection means to the external device. 2. The touch panel controller according to claim 1. オブジェクト毎に、前記オブジェクトと前記操作レベルと領域情報とが関連付けられたデータを記憶する記憶手段を備え、
前記取得手段は、前記検出手段で検出されたタッチ位置と前記データの前記領域情報とに基づいて、前記タッチ位置に対応するオブジェクトの操作レベルを取得することを特徴とする請求項1又は2に記載のタッチパネル用コントローラ。
storage means for storing data in which the object, the operation level, and the area information are associated with each object;
3. The apparatus according to claim 1, wherein said acquisition means acquires an operation level of an object corresponding to said touch position based on said touch position detected by said detection means and said area information of said data. Controller for touch panel described.
コンピュータを、
タッチ位置、タッチオン及びタッチオフを検出する検出手段、
前記タッチ位置に対応するオブジェクトの操作レベルを取得する取得手段、及び
前記取得手段で取得された今回の操作レベルと前回の操作レベルが所定の関係になると、当該所定の関係になった位置の座標情報を前記タッチオフの座標情報として外部装置に出力し、前記検出手段が前記タッチオフを検出するまで前記検出手段で検出されたタッチ位置の座標情報を前記外部装置に出力しない出力制御手段
として機能させることを特徴とするプログラム。
the computer,
detection means for detecting touch position, touch-on and touch-off;
acquisition means for acquiring an operation level of an object corresponding to the touch position; and coordinates of a position where the current operation level and the previous operation level acquired by the acquisition means have a predetermined relationship when the relationship is established. outputting information as touch-off coordinate information to an external device, and outputting coordinate information of the touch position detected by the detecting means to the external device until the detecting means detects the touch-off. A program characterized by
JP2019092918A 2019-05-16 2019-05-16 Touch panel controller and program Active JP7257248B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019092918A JP7257248B2 (en) 2019-05-16 2019-05-16 Touch panel controller and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019092918A JP7257248B2 (en) 2019-05-16 2019-05-16 Touch panel controller and program

Publications (2)

Publication Number Publication Date
JP2020187632A JP2020187632A (en) 2020-11-19
JP7257248B2 true JP7257248B2 (en) 2023-04-13

Family

ID=73221875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019092918A Active JP7257248B2 (en) 2019-05-16 2019-05-16 Touch panel controller and program

Country Status (1)

Country Link
JP (1) JP7257248B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033797A (en) 2006-07-31 2008-02-14 Mitsubishi Electric Corp Analog touch panel device
WO2013121649A1 (en) 2012-02-14 2013-08-22 Necカシオモバイルコミュニケーションズ株式会社 Information processing device
JP2015166970A (en) 2014-03-04 2015-09-24 オムロン株式会社 Program for character input system and information processing device
JP2015170213A (en) 2014-03-07 2015-09-28 キヤノン株式会社 Handheld equipment, and control method and program
JP2020149278A (en) 2019-03-13 2020-09-17 セイコーエプソン株式会社 Electronic apparatus and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008033797A (en) 2006-07-31 2008-02-14 Mitsubishi Electric Corp Analog touch panel device
WO2013121649A1 (en) 2012-02-14 2013-08-22 Necカシオモバイルコミュニケーションズ株式会社 Information processing device
JP2015166970A (en) 2014-03-04 2015-09-24 オムロン株式会社 Program for character input system and information processing device
JP2015170213A (en) 2014-03-07 2015-09-28 キヤノン株式会社 Handheld equipment, and control method and program
JP2020149278A (en) 2019-03-13 2020-09-17 セイコーエプソン株式会社 Electronic apparatus and program

Also Published As

Publication number Publication date
JP2020187632A (en) 2020-11-19

Similar Documents

Publication Publication Date Title
US20110122080A1 (en) Electronic device, display control method, and recording medium
JP5798532B2 (en) User interface device, user interface method and program
JP2012043180A (en) Information processor, information processing method and computer program
JP6034649B2 (en) Information processing apparatus, information processing apparatus control method, and program
KR101368584B1 (en) Portable terminal apparatus and computer readable medium
US20100020031A1 (en) Mobile device having touch screen and method for setting virtual keypad thereof
US10044888B2 (en) Image forming apparatus and control method thereof
JP2014081789A5 (en)
WO2009031478A2 (en) Information processor, user interface control method and program
JP6370118B2 (en) Information processing apparatus, information processing method, and computer program
US20160291832A1 (en) Method and program for displaying information
JP7257248B2 (en) Touch panel controller and program
JP6407474B1 (en) Operation display panel and operation display method
WO2014141799A1 (en) Electronic device, information processing method, and information processing program
JP6482312B2 (en) Touch operation input device
JP6034140B2 (en) Display device, display control method, and program
JP2001195170A (en) Portable electronic equipment, input controller and storage medium
JP2013218542A (en) Touch panel system, touch panel device and program
JP2017084216A (en) Input processing apparatus and image forming apparatus including the same
JP6207804B1 (en) Touch input determination device, touch input determination method, and touch input determination program
JP5245708B2 (en) Character input device, character input method, and character input program
JP6128145B2 (en) Touch processing apparatus and program
EP2796981B1 (en) Apparatus and method for controlling a touchscreen display for one hand operation
JP2015049837A (en) Portable terminal device
JP5636584B2 (en) Character input device, character input method, and character input program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220425

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230123

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: 20230307

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230403

R150 Certificate of patent or registration of utility model

Ref document number: 7257248

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150