JP6261148B1 - Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine - Google Patents

Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine Download PDF

Info

Publication number
JP6261148B1
JP6261148B1 JP2016202839A JP2016202839A JP6261148B1 JP 6261148 B1 JP6261148 B1 JP 6261148B1 JP 2016202839 A JP2016202839 A JP 2016202839A JP 2016202839 A JP2016202839 A JP 2016202839A JP 6261148 B1 JP6261148 B1 JP 6261148B1
Authority
JP
Japan
Prior art keywords
value
sensor
key
game machine
measurement 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
Application number
JP2016202839A
Other languages
Japanese (ja)
Other versions
JP2018061776A (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.)
Konami Digital Entertainment Co Ltd
Original Assignee
Konami Digital Entertainment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Konami Digital Entertainment Co Ltd filed Critical Konami Digital Entertainment Co Ltd
Priority to JP2016202839A priority Critical patent/JP6261148B1/en
Priority to PCT/JP2017/036849 priority patent/WO2018070435A1/en
Application granted granted Critical
Publication of JP6261148B1 publication Critical patent/JP6261148B1/en
Publication of JP2018061776A publication Critical patent/JP2018061776A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/22Setup operations, e.g. calibration, key configuration or button assignment
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles
    • A63F13/245Constructional details thereof, e.g. game controllers with detachable joystick handles specially adapted to a particular type of game, e.g. steering wheels
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/533Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game for prompting the player, e.g. by displaying a game menu
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/814Musical performances, e.g. by evaluating the player's ability to follow a notation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Input From Keyboards Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

【課題】検出の基準となる値を複数のセンサ間で共通に設定しつつ、操作部材の機械的誤差やセンサの外部環境の変化が計測値に与える影響を比較的容易に補償することが可能なゲーム機の操作装置を提供する。【解決手段】操作部材としての複数の鍵11と、各鍵11の操作に応じて互いの距離が変化するようにして鍵11ごとに設けられた検出対象の磁石32及び磁気センサ31とを備えたゲーム機の操作装置において、各磁気センサ31が出力する計測値の変化に基づいて、各鍵11の未操作状態を検出する未操作状態検出部61と、複数の鍵11間で共通に設定された基準値と未操作状態が検出されたときの各磁気センサ31の計測値との差分を各磁気センサ31の計測値に対する補整値として磁気センサ31ごとに算出する補整値算出部62と、各磁気センサ31が出力する計測値と、基準値と、補整値とに基づいて、各鍵11の操作量を算出する操作判定部60とを設ける。【選択図】図8[PROBLEMS] To relatively easily compensate for the influence of a mechanical error of an operating member or a change in the external environment of a sensor on a measured value while setting a reference value for detection in common among a plurality of sensors. A game machine operating device is provided. [MEANS FOR SOLVING PROBLEMS] A plurality of keys (11) as operation members and a magnet (32) and a magnetic sensor (31) to be detected are provided for each key (11) such that the distance between the keys changes according to the operation of each key. In the operating device of the game machine, the non-operation state detection unit 61 that detects the non-operation state of each key 11 and a plurality of keys 11 are set in common based on the change in the measurement value output by each magnetic sensor 31. A compensation value calculation unit 62 that calculates, for each magnetic sensor 31, a difference between the measured reference value and the measurement value of each magnetic sensor 31 when an unoperated state is detected, as a compensation value for the measurement value of each magnetic sensor 31; An operation determination unit 60 that calculates the operation amount of each key 11 is provided based on the measurement value output from each magnetic sensor 31, the reference value, and the compensation value. [Selection] Figure 8

Description

本発明は、検出対象までの距離に応じた計測値を出力するセンサを用いて複数の操作部材のそれぞれの操作量を検出するゲーム機の操作装置等に関する。   The present invention relates to an operation device for a game machine that detects the operation amounts of a plurality of operation members using a sensor that outputs a measurement value corresponding to a distance to a detection target.

磁気センサや光電センサといった非接触型のセンサを利用して操作部材の操作を検出する場合、操作部材又はその関連部品の形状誤差や組立誤差といった機械的誤差、あるいは気温や湿度といった外部環境の変化に伴うセンサ特性の変化でセンサの計測値に誤差が生じる。そのため、操作部材の操作を正しく検出するためには機械的誤差や外部環境の変化がセンサの計測値に与える影響を補償して検出精度を確保する必要がある。そのような補償を実現する例としては、複数の鍵のそれぞれの変位量を発光素子及び受光素子によって検出する場合において、鍵が操作されていない非押鍵状態にて受光素子から出力される計測値を検出の基準となる初期値として設定し、その初期値からの計測値の変化量に基づいて鍵の操作量を検出しつつ、非押鍵状態における計測値を適宜の時期に検出し、その検出結果に基づいて初期値を更新する操作装置が知られている(例えば特許文献1参照)。   When detecting operation of an operation member using a non-contact type sensor such as a magnetic sensor or photoelectric sensor, mechanical error such as shape error or assembly error of the operation member or its related parts, or change in external environment such as temperature or humidity An error occurs in the measured value of the sensor due to the change in sensor characteristics accompanying the. Therefore, in order to correctly detect the operation of the operation member, it is necessary to compensate for the influence of the mechanical error and the change in the external environment on the measurement value of the sensor to ensure the detection accuracy. As an example of realizing such compensation, in the case where the displacement amount of each of a plurality of keys is detected by a light emitting element and a light receiving element, measurement output from the light receiving element in a non-key-pressed state in which the key is not operated. The value is set as an initial value serving as a reference for detection, and the measurement value in the non-key-pressed state is detected at an appropriate time while detecting the key operation amount based on the change amount of the measurement value from the initial value, An operation device that updates an initial value based on the detection result is known (see, for example, Patent Document 1).

特許第5327673号公報Japanese Patent No. 5327673

特許文献1の操作装置は、鍵ごとに個別に初期値を設定しているため、例えば鍵ごとに初期値を求めて設定するといったように初期値の管理に手間を要する。その手間は鍵の個数が増加するほど顕著である。   Since the operating device of Patent Document 1 sets an initial value individually for each key, it takes time to manage the initial value, for example, to obtain and set an initial value for each key. The effort becomes more conspicuous as the number of keys increases.

そこで、本発明は、検出の基準となる値を複数の操作部材のそれぞれに対応したセンサ間で共通に設定しつつ、操作部材の機械的誤差やセンサの外部環境の変化が計測値に与える影響を比較的容易に補償することが可能なゲーム機の操作装置等を提供することを目的とする。   In view of this, the present invention sets the detection reference value in common among the sensors corresponding to each of the plurality of operation members, and affects the measurement values due to mechanical errors of the operation members and changes in the external environment of the sensors. It is an object of the present invention to provide a game machine operating device and the like that can compensate for the above with relative ease.

本発明の一態様に係るゲーム機の操作装置は、ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機の操作装置において、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段と、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段と、各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段と、を備えたものである。   An operating device for a game machine according to one embodiment of the present invention is provided for each operating member such that a plurality of operating members to be operated by a user of the game and a mutual distance change according to the operation of each operating member. A plurality of operation members based on changes in the measurement values output from each sensor in an operation device of a game machine, wherein the measurement values are output from the sensors according to the distance. A non-operation state detecting means for detecting each non-operation state, a reference value related to the measurement value set in common among the plurality of operation members, and a measurement value of each sensor when the non-operation state is detected The compensation value calculation means for calculating for each sensor as a compensation value for the measurement value of each sensor, the measurement value output by each sensor, the reference value, and the compensation value calculated by the compensation value calculation means. Based on the value, the control input calculation means for calculating an operation amount from each of the non-operating state of the plurality of operation members, are those having a.

本発明の一態様に係るゲーム機は、上記態様の操作装置と、所定のゲーム画面を表示する表示装置と、前記操作装置における前記複数の操作部材のそれぞれに対する操作を前記ゲーム画面を通じて前記ユーザに指示する操作指示手段と、を備えたものである。   A game machine according to an aspect of the present invention provides the user with an operation on the operation device according to the above aspect, a display device that displays a predetermined game screen, and an operation on each of the plurality of operation members on the operation device through the game screen. And an operation instruction means for instructing.

本発明の一態様に係るゲーム機の操作検出方法は、ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機に適用される操作検出方法であって、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手順と、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手順と、各センサが出力する計測値と、前記基準値と、前記補整値算出手順にて算出された補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手順と、を備えたものである。   A game machine operation detection method according to an aspect of the present invention includes a plurality of operation members to be operated by a user of a game, and each operation member such that the distance between the operation members changes according to the operation of each operation member. An operation detection method that is applied to a game machine that includes a detection object and a sensor provided, and that outputs a measurement value according to the distance from the sensor, based on a change in the measurement value output by each sensor. The non-operation state detection procedure for detecting the respective non-operation states of the plurality of operation members, the reference value related to the measurement value set in common among the plurality of operation members, and the non-operation state are detected. Compensation value calculation procedure for calculating for each sensor the difference from the measurement value of each sensor as a compensation value for the measurement value of each sensor, the measurement value output by each sensor, the reference value, and the compensation value calculation Based on the compensation values calculated in steps, in which and an operation amount calculation procedure for calculating the operation amount from each of the non-operating state of the plurality of operation members.

本発明の一態様に係るゲーム機用のコンピュータプログラムは、ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機に設けられたコンピュータを、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段、及び各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段、として機能させるように構成されたものである。   A computer program for a game machine according to an aspect of the present invention provides a plurality of operation members to be operated by a game user, and each operation member such that the distance between the operation members changes according to the operation of each operation member. A computer provided in a game machine having a detection object and a sensor provided, and outputting a measurement value according to the distance from the sensor, based on a change in the measurement value output by each sensor, Non-operating state detecting means for detecting each non-operating state of each of the operating members, a reference value related to the measurement value set in common among the plurality of operating members, and each sensor when the non-operating state is detected Compensation value calculation means for calculating the difference from the measurement value for each sensor as a compensation value for the measurement value of each sensor, the measurement value output by each sensor, the reference value, and the compensation Based on the compensation value value calculation means has calculated, the operation amount calculating means for calculating an operation amount from each of the non-operating state of the plurality of operation members, in which is configured to function as a.

本発明の一形態に係るゲーム機の概略を示す斜視図。The perspective view which shows the outline of the game machine which concerns on one form of this invention. 鍵盤部の左右方向に沿った部分断面図。The fragmentary sectional view along the left-right direction of a keyboard part. 鍵盤部の前後方向に沿った部分断面図。The fragmentary sectional view along the front-back direction of a keyboard part. ゲーム機の制御系の要部の構成を示す機能ブロック図。The functional block diagram which shows the structure of the principal part of the control system of a game machine. ユーザに操作を指示するために表示される画面の一例を示す図。The figure which shows an example of the screen displayed in order to instruct | indicate operation to a user. 複数の鍵間における位置の誤差の一例を示す図。The figure which shows an example of the error of the position between several keys. 磁気センサから出力される計測値の波形の一例を示す図。The figure which shows an example of the waveform of the measured value output from a magnetic sensor. 操作処理部の構成を示す機能ブロック図。The functional block diagram which shows the structure of an operation process part. 操作処理部が実行する補整値更新処理の手順を示すフローチャート。The flowchart which shows the procedure of the correction value update process which an operation process part performs. 操作処理部が実行する操作判定処理の手順を示すフローチャート。The flowchart which shows the procedure of the operation determination process which an operation process part performs. 図8の変形例を示す機能ブロック図。The functional block diagram which shows the modification of FIG.

図1は、本発明の一形態に係る操作装置が組み込まれたゲーム機の外観構成を示している。ゲーム機1は、筐体2と、筐体2に取り付けられた表示装置3と、表示装置3の手前側に設けられた入力装置4を備えている。表示装置3には、例えば液晶モニタ等のフラットパネルディスプレイが用いられている。表示装置3は、その表示面を斜め上方に向けるようにして筐体2に取り付けられている。入力装置4は鍵盤部5を含んでいる。鍵盤部5は、ユーザが表示装置3と向かい合うようにして筐体2の前方に立ったときにそのユーザの手元に位置し、かつ表示装置3の左右方向の一端部から他端部まで延びるように設けられている。以下、ユーザを基準として方向を特定する場合には、特に断らない限り、ユーザが表示装置3と向かい合うようにして立った状態を基準としたときの方向を意味するものとする。なお、筐体2の表示装置3の上端側には左右一対のスピーカ6が設けられている。入力装置4には、鍵盤部5の他に押釦スイッチ、カードリーダ等の各種の入力機器が設けられるが、それらの説明は省略する。   FIG. 1 shows an external configuration of a game machine in which an operation device according to one embodiment of the present invention is incorporated. The game machine 1 includes a housing 2, a display device 3 attached to the housing 2, and an input device 4 provided on the front side of the display device 3. As the display device 3, for example, a flat panel display such as a liquid crystal monitor is used. The display device 3 is attached to the housing 2 with its display surface facing obliquely upward. The input device 4 includes a keyboard unit 5. The keyboard unit 5 is positioned at the user's hand when the user stands in front of the housing 2 so as to face the display device 3, and extends from one end portion in the left-right direction of the display device 3 to the other end portion. Is provided. Hereinafter, when the direction is specified with the user as a reference, the direction when the user stands with the display device 3 facing the display device 3 is assumed unless otherwise specified. A pair of left and right speakers 6 are provided on the upper end side of the display device 3 of the housing 2. The input device 4 is provided with various input devices such as a push button switch and a card reader in addition to the keyboard unit 5, and description thereof will be omitted.

次に、図2及び図3を参照して鍵盤部5の具体的な構成を説明する。図2に示すように、鍵盤部5は、ベース10と、そのベース10上に設けられた操作部材の一例としての複数の鍵11とを備えている。ベース10は、鍵盤部5を筐体2に取り付ける支持構造体として機能する。鍵11は、筐体2の左右方向(図中の左右方向と一致する。)に一定の間隔で並ぶようにしてベース10に取り付けられている。なお、図2は鍵盤部5の一部を拡大して示しており、実際にはより多くの個数の鍵11が鍵盤部5に設けられている。鍵11の形状及び大きさは互いに等しい。鍵11の上面はその全体に亘って平面状である。   Next, a specific configuration of the keyboard unit 5 will be described with reference to FIGS. As shown in FIG. 2, the keyboard unit 5 includes a base 10 and a plurality of keys 11 as an example of an operation member provided on the base 10. The base 10 functions as a support structure that attaches the keyboard unit 5 to the housing 2. The keys 11 are attached to the base 10 so as to be arranged at regular intervals in the left-right direction of the housing 2 (corresponding to the left-right direction in the figure). Note that FIG. 2 shows a part of the keyboard unit 5 in an enlarged manner. Actually, a larger number of keys 11 are provided in the keyboard unit 5. The shape and size of the key 11 are equal to each other. The upper surface of the key 11 is planar throughout.

図3にも示すように、ベース10は、筐体2の左右方向に延ばされる前後一対のビーム12と、それらのビーム12の上面側に取り付けられる天板13と、ビーム12の下面側に取り付けられる底板14とを備えている。また、ベース10内には、鍵11を下方から照明する一対のLED15が設けられている。鍵11は、鍵盤楽器の鍵と同様に細長い概略直方体状の基本形状を有している。鍵11は、その長手方向(図3の左右方向)を筐体2の前後方向に一致させるようにしてベース10の天板13上に配置されている。なお、図3は単一の鍵11及びその鍵11の周囲の構成を示しているが、他の鍵11及びその周囲の構成も同一である。鍵11は内部が詰まった中実のブロック状である。ただし、鍵11は内部が中空で下方に開口する箱状に形成されてもよい。鍵11の材質は適宜に選択されてよい。本形態では、磁気センサを用いて鍵11の押し込み操作を検出しているため、鍵11はプラスチック等の非磁性材料にて形成される。また、LED15の照明光にて鍵11を全体的に発光させるため、鍵11は照明光を拡散させる適度の散乱性を有する材料にて形成される。   As shown in FIG. 3, the base 10 is attached to a pair of front and rear beams 12 extending in the left-right direction of the housing 2, a top plate 13 attached to the upper surface side of the beams 12, and a lower surface side of the beam 12. The bottom plate 14 is provided. In the base 10, a pair of LEDs 15 for illuminating the key 11 from below is provided. The key 11 has a basic shape that is a long and narrow rectangular parallelepiped shape like the key of a keyboard instrument. The key 11 is disposed on the top plate 13 of the base 10 so that the longitudinal direction (the left-right direction in FIG. 3) coincides with the front-rear direction of the housing 2. FIG. 3 shows a single key 11 and the configuration around the key 11, but the other keys 11 and the configuration around them are the same. The key 11 has a solid block shape in which the inside is clogged. However, the key 11 may be formed in a box shape that is hollow inside and opens downward. The material of the key 11 may be appropriately selected. In this embodiment, since the pressing operation of the key 11 is detected using a magnetic sensor, the key 11 is formed of a nonmagnetic material such as plastic. Moreover, in order to make the key 11 emit light entirely with the illumination light of the LED 15, the key 11 is formed of a material having an appropriate scattering property to diffuse the illumination light.

ベース10と鍵11との間には支持機構20が設けられている。支持機構20は、鍵11の前端部11a及び後端部11bとベース10の天板13との間に配置された弾性体の一例としてのコイルばね21を含んでいる。コイルばね21は鍵11ごとに設けられている。したがって、鍵11はベース10に向かって個別に押し込み操作することが可能である。全てのコイルばね21のばね特性及び寸法は同一である。鍵11を下方に押し込むとコイルばね21が撓み、それらのコイルばね21の弾性変形に対する反発力により鍵11が上方に押し返される。鍵11の長手方向両端部11a、11bを同一のコイルばね21にて支持しているので、鍵11をその長手方向に関してどのような位置で操作しても、略同様の感覚で鍵11を押し込むことが可能である。なお、コイルばね21による支持位置は可能な限り鍵11の長手方向の端部に寄せられている。したがって、上述したLED15はコイルばね21よりも鍵11の長手方向中央側に偏った位置に配置されている。   A support mechanism 20 is provided between the base 10 and the key 11. The support mechanism 20 includes a coil spring 21 as an example of an elastic body disposed between the front end portion 11 a and the rear end portion 11 b of the key 11 and the top plate 13 of the base 10. A coil spring 21 is provided for each key 11. Therefore, the keys 11 can be individually pushed toward the base 10. The spring characteristics and dimensions of all the coil springs 21 are the same. When the key 11 is pushed downward, the coil spring 21 is bent, and the key 11 is pushed back by the repulsive force against the elastic deformation of the coil spring 21. Since both ends 11a and 11b in the longitudinal direction of the key 11 are supported by the same coil spring 21, the key 11 is pushed in almost in the same manner regardless of the position of the key 11 in the longitudinal direction. It is possible. The support position by the coil spring 21 is as close to the longitudinal end of the key 11 as possible. Therefore, the LED 15 described above is disposed at a position biased toward the longitudinal center side of the key 11 relative to the coil spring 21.

天板13の前後方向中央部には上方への突出部13aが設けられている。鍵11の下方への移動はその突出部13aと鍵11の下面とが接することによって制限される。つまり、突出部13aは鍵11を押し込んだときの下部ストッパとして機能する。図3に示したように、鍵11の下面側であってコイルばね21が接する位置よりも長手方向中央側に幾らか偏った位置には、下方に延びる一対のストッパ桿16が設けられている。ストッパ桿16は天板13を貫いてベース10内に挿入され、その先端(下端)の爪16aはビーム12に設けられた凹部12aに嵌め合わされる。鍵11が押し込み操作されていない状態(以下、未操作状態と呼ぶことがある。)において、爪16aは凹部12aの上端と噛み合う。それにより、鍵11の上方への変位が阻止される。つまり、ストッパ桿16及び凹部12aは、鍵11の上方への抜け出しを阻止する上部ストッパとして機能する。なお、弾性体はコイルばね21に限定されない。例えば、スポンジ状の樹脂ブロック、ゴム、エラストマーその他の各種の弾性体がコイルばね21に代えて、又は加えて支持機構20に設けられてよい。   An upward projecting portion 13 a is provided at the center in the front-rear direction of the top plate 13. The downward movement of the key 11 is restricted by contact between the protruding portion 13a and the lower surface of the key 11. That is, the protrusion 13a functions as a lower stopper when the key 11 is pushed. As shown in FIG. 3, a pair of stopper rods 16 extending downward are provided at positions on the lower surface side of the key 11 that are slightly deviated toward the center in the longitudinal direction from the position where the coil spring 21 contacts. . The stopper rod 16 passes through the top plate 13 and is inserted into the base 10, and a claw 16 a at the tip (lower end) is fitted into a recess 12 a provided in the beam 12. In a state where the key 11 is not pushed in (hereinafter sometimes referred to as an unoperated state), the claw 16a meshes with the upper end of the recess 12a. Thereby, the upward displacement of the key 11 is prevented. That is, the stopper rod 16 and the recess 12a function as an upper stopper that prevents the key 11 from being pulled upward. The elastic body is not limited to the coil spring 21. For example, various elastic bodies such as a sponge-like resin block, rubber, elastomer, and the like may be provided in the support mechanism 20 instead of or in addition to the coil spring 21.

鍵盤部5には、鍵11の押し込み操作を検出するための操作検出機構30がさらに設けられている。操作検出機構30は、天板13の突出部13aの下方に位置するようにしてベース10内の取付台17に取り付けられたセンサの一例としての磁気センサ31と、その磁気センサ31と天板13を挟んで対向するようにして鍵11に取り付けられた検出対象の一例としての磁石32とを含んでいる。磁気センサ31は鍵11ごとに設けられている。磁石32は永久磁石である。磁気センサ31は、磁石32との距離に応じた計測値を出力する。磁気センサ31及び磁石32は、コイルばね21による鍵11の支持位置間であって、コイルばね21同士の距離を略二等分する位置に設けられている。つまり、操作検出機構30による押し込み操作の検出位置は鍵11の長手方向中央部に設定されている。鍵11が傾いて押し込まれても長手方向中央部はその影響が生じにくいため、そのような位置に磁気センサ31及び磁石32を配置すれば、押し込み操作の検出感度のばらつきを抑える点で有利である。なお、取付台17には上述したLED15も取り付けられている。   The keyboard unit 5 is further provided with an operation detection mechanism 30 for detecting the pressing operation of the key 11. The operation detection mechanism 30 includes a magnetic sensor 31 as an example of a sensor attached to the mounting base 17 in the base 10 so as to be positioned below the protruding portion 13 a of the top plate 13, and the magnetic sensor 31 and the top plate 13. And a magnet 32 as an example of a detection target attached to the key 11 so as to face each other. A magnetic sensor 31 is provided for each key 11. The magnet 32 is a permanent magnet. The magnetic sensor 31 outputs a measurement value corresponding to the distance from the magnet 32. The magnetic sensor 31 and the magnet 32 are provided between the positions where the key 11 is supported by the coil spring 21 and the distance between the coil springs 21 is roughly divided into two. That is, the detection position of the pushing operation by the operation detection mechanism 30 is set at the center in the longitudinal direction of the key 11. Even if the key 11 is tilted and pushed in, the central portion in the longitudinal direction is hardly affected. Therefore, if the magnetic sensor 31 and the magnet 32 are arranged at such a position, it is advantageous in suppressing variation in detection sensitivity of the pushing operation. is there. The above-described LED 15 is also attached to the mounting base 17.

鍵11の下面側には、押し込み操作の方向(図示例では下方)に向かって延びる押下桿18が設けられている。押下桿18はベース10を貫き、その先端(下端)は鍵11の未操作状態で底板14の下方に突出する。ベース10の下面側にはクリック感付与機構40が設けられている。クリック感付与機構40は、ベース10の底板14にブラケット41を介して取り付けられたマイクロスイッチユニット42を備えている。マイクロスイッチユニット42は、操作子42aの押し込み操作に伴って内部接点が断続状態(オフ)から導通状態(オン)へと切り替わり、かつその内部接点の切り替えに連動して操作子42aにクリック感を付与する接触型スイッチユニットの一例に相当する。この種のスイッチユニットは市場に種々提供されており、適宜のスイッチユニットがクリック感付与機構40に採用されてよい。マイクロスイッチユニット42は、その操作子42aが鍵11の押し込み操作に伴って押下桿18と接触して下方に押し込まれるように設けられている。鍵11の押し込み操作の操作量が所定量に達したときに操作子42aにクリック感が付与される。市販のマイクロスイッチユニットを利用してクリック感付与機構40を設けることができるので、多数の鍵11が設けられた構成であっても、独自構造のクリック感付与機構を構築する場合と比較して容易かつ安価にクリック感付与機構を構成することができる。   On the lower surface side of the key 11, a pressing rod 18 that extends in the direction of the pressing operation (downward in the illustrated example) is provided. The pressing rod 18 penetrates the base 10 and its tip (lower end) protrudes below the bottom plate 14 when the key 11 is not operated. A click feeling imparting mechanism 40 is provided on the lower surface side of the base 10. The click feeling imparting mechanism 40 includes a micro switch unit 42 attached to the bottom plate 14 of the base 10 via a bracket 41. In the micro switch unit 42, the internal contact is switched from the intermittent state (off) to the conductive state (on) in accordance with the pushing operation of the operation member 42a, and the operation member 42a is clicked in conjunction with the switching of the internal contact. This corresponds to an example of a contact type switch unit to be provided. Various switch units of this type are provided on the market, and an appropriate switch unit may be employed in the click feeling imparting mechanism 40. The micro switch unit 42 is provided such that its operating element 42 a comes into contact with the pressing rod 18 and is pushed downward when the key 11 is pushed. When the operation amount of the pressing operation of the key 11 reaches a predetermined amount, a click feeling is given to the operation element 42a. Since the click feeling imparting mechanism 40 can be provided by using a commercially available microswitch unit, even in a configuration in which a large number of keys 11 are provided, compared to the case where a click feeling imparting mechanism having a unique structure is constructed. A click feeling imparting mechanism can be configured easily and inexpensively.

次に、図4を参照してゲーム機1の制御系について説明する。ゲーム機1にはゲーム制御装置50が設けられている。ゲーム制御装置50はCPU及びその動作に必要な内部メモリといった周辺機器を含んだコンピュータユニットである。ゲーム制御装置50には上述した鍵盤部5を含む入力装置4が接続されるとともに、表示装置3、音出力装置7及び記憶装置51が接続される。入力装置4からはゲームの制御に必要な各種の信号が入力される。鍵盤部5の磁気センサ31の出力もゲーム制御装置50に入力される。表示装置3はゲーム制御装置50から出力される画像信号に従ってゲーム画面を表示する。音出力装置7はスピーカ6及びその駆動回路を含み、ゲーム制御装置50から出力される音声信号に応じた音声、楽音、効果音等をスピーカ6から再生させる。   Next, the control system of the game machine 1 will be described with reference to FIG. The game machine 1 is provided with a game control device 50. The game control device 50 is a computer unit including a peripheral device such as a CPU and an internal memory necessary for its operation. The game control device 50 is connected to the input device 4 including the keyboard unit 5 described above, and to the display device 3, the sound output device 7, and the storage device 51. Various signals necessary for game control are input from the input device 4. The output of the magnetic sensor 31 of the keyboard unit 5 is also input to the game control device 50. The display device 3 displays a game screen according to the image signal output from the game control device 50. The sound output device 7 includes a speaker 6 and a driving circuit thereof, and reproduces sound, musical sound, sound effect, and the like corresponding to the sound signal output from the game control device 50 from the speaker 6.

記憶装置51は、磁気ディスク、フラッシュメモリ等の不揮発性記憶媒体を用いた記憶装置であって、ゲーム制御装置50のCPUに対する外部記憶装置として機能する。記憶装置51には、ゲームプログラムPG及びゲームデータDGが記録されている。ゲーム制御装置50はゲームプログラムPG及びゲームデータDGを適宜に読み込んで、ユーザに所定のゲームをプレイさせるための各種の処理を実行する。ゲームプログラムPGよって実現されるゲームは、鍵盤部5の操作を伴うものであれば適宜に設定されてよいが、ここでは音楽ゲームが実行されるものとする。音楽ゲームは、所定の音楽に合わせた操作をユーザに指示し、指示された操作とユーザの実際の操作とを比較してユーザの操作を評価するタイプのゲームである。ゲームデータDGには、ゲーム機1にて音楽の楽曲を再生するための楽曲データDG1と、ユーザに指示すべき操作の手順を記録した操作指示データDG2とが記録される。楽曲データDG1は複数の楽曲のそれぞれを再生するためのデータを含む。操作指示データDG2には、楽曲の再生中のどのような時期にどの鍵11が操作されるべきかを指定する情報が記録される。操作指示データDG2は、楽曲ごとに少なくとも1種類のデータが含まれる。一つの楽曲に対して難易度が異なる複数種類のデータが操作指示データDG2に記録されてもよい。ゲームデータDGには、上記の他にも各種の画像データや音源データが記録されるが、それらの図示は省略した。   The storage device 51 is a storage device using a nonvolatile storage medium such as a magnetic disk or a flash memory, and functions as an external storage device for the CPU of the game control device 50. In the storage device 51, a game program PG and game data DG are recorded. The game control device 50 appropriately reads the game program PG and the game data DG, and executes various processes for causing the user to play a predetermined game. The game realized by the game program PG may be set as appropriate as long as it involves operation of the keyboard unit 5, but here, it is assumed that a music game is executed. The music game is a type of game in which an operation in accordance with predetermined music is instructed to the user, and the user's operation is evaluated by comparing the instructed operation with the actual operation of the user. In the game data DG, music data DG1 for playing a music piece on the game machine 1 and operation instruction data DG2 in which an operation procedure to be instructed to the user is recorded. The song data DG1 includes data for reproducing each of the plurality of songs. In the operation instruction data DG2, information specifying which key 11 should be operated at what time during the reproduction of the music is recorded. The operation instruction data DG2 includes at least one type of data for each music piece. A plurality of types of data having different difficulty levels for one piece of music may be recorded in the operation instruction data DG2. In addition to the above, various types of image data and sound source data are recorded in the game data DG, but these are not shown.

ゲーム機1が起動されると、ゲーム制御装置50は、ゲーム機1として動作するために必要な各種の初期設定を実行し、続いて、記憶装置51からゲームプログラムPGを読み込んでこれを実行することにより、音楽ゲームを実行するための環境を設定する。ゲームプログラムPGが実行されることにより、ゲーム制御装置50には、コンピュータハードウエアとコンピュータプログラムとの組み合わせによって実現される論理的装置として、操作指示部52、操作処理部53及び操作評価部54が生成される。操作指示部52は、操作指示データDG2に基づいてゲームのユーザが選択した楽曲の再生に合わせた操作をユーザに指示する。操作処理部53は入力装置4の鍵盤部5からの出力に従ってユーザがどの鍵11をどのような時期(タイミング)で操作したかを判定する。操作評価部54は、操作処理部53が判定したユーザの操作と、操作指示データDG2に記述された操作手順とを比較してユーザの操作を評価する。ゲーム制御装置50には図示以外にも各種の論理的装置が生成されるが、それらの図示は省略した。   When the game machine 1 is activated, the game control device 50 executes various initial settings necessary to operate as the game machine 1, and then reads the game program PG from the storage device 51 and executes it. Thus, an environment for executing the music game is set. By executing the game program PG, the game control device 50 includes an operation instruction unit 52, an operation processing unit 53, and an operation evaluation unit 54 as logical devices realized by a combination of computer hardware and a computer program. Generated. The operation instruction unit 52 instructs the user to perform an operation in accordance with the reproduction of the music selected by the game user based on the operation instruction data DG2. The operation processing unit 53 determines which key 11 the user has operated at what timing (timing) according to the output from the keyboard unit 5 of the input device 4. The operation evaluation unit 54 compares the user operation determined by the operation processing unit 53 with the operation procedure described in the operation instruction data DG2, and evaluates the user operation. Various logical devices other than those shown in the drawing are generated in the game control device 50, but illustrations thereof are omitted.

図5は、操作指示部52が表示装置3の画面を通じてユーザに提示する操作指示画面の一例を示している。なお、図5は一部の鍵11のみを対象として描かれている。まず、操作指示画面100の基本構成を説明する。操作指示画面100には、左右方向に複数の区切線101で区分された複数本のレーン102が設定される。区切線101は表示されてもよいし、表示されなくてもよい。レーン102の間隔は鍵盤部5における鍵11の左右方向における並び間隔(ピッチ)と一致し、レーン102の本数は鍵11の個数と一致する。つまり、レーン102と鍵11とは1対1の対応関係にある。ユーザから見たときの各レーン102の左右方向における位置は対応する鍵11の左右方向における位置と略一致する。   FIG. 5 shows an example of an operation instruction screen that the operation instruction unit 52 presents to the user through the screen of the display device 3. FIG. 5 illustrates only a part of the keys 11. First, the basic configuration of the operation instruction screen 100 will be described. In the operation instruction screen 100, a plurality of lanes 102 divided by a plurality of dividing lines 101 in the left-right direction are set. The dividing line 101 may be displayed or may not be displayed. The interval of the lanes 102 matches the arrangement interval (pitch) of the keys 11 in the left-right direction in the keyboard unit 5, and the number of the lanes 102 matches the number of keys 11. That is, the lane 102 and the key 11 have a one-to-one correspondence. When viewed from the user, the position of each lane 102 in the left-right direction substantially matches the position of the corresponding key 11 in the left-right direction.

レーン102には、ユーザが操作すべき鍵11の位置及び操作が行われるべき時期を指定するためのシンボル103が表示される。シンボル103は一例として音符状の形状で示されるが、これに限らず適宜の形状でよい。シンボル103は、ユーザが操作すべき鍵11に対応するレーン102上に表示される。つまり、シンボル103がいずれのレーン102に表示されているかにより、ユーザに対して操作が行われるべき位置が指定される。ただし、シンボル103は複数のレーン102に相当する幅で表示されてもよい。例えば、ユーザが操作すべき鍵11に対応するレーン102を中心として左右方向に隣接するレーン102にも重なるようにシンボル103が表示されてもよい。シンボル103は、所定時刻にレーン102の上端部に出現し、楽曲の再生の進行に伴ってレーン102を矢印Dで示したように徐々に下降する。シンボル103は、鍵11を操作すべき時期にレーン102の下端部の基準領域104と一致する。それにより、シンボル103に対応した鍵11を操作すべき時期が指定される。図5では、左から三番目のレーン102にてシンボル103が基準領域104と重なり合っている。ユーザは、シンボル103が基準領域104と重なり合ったタイミングで、そのシンボル103が表示されているレーン102に対応する鍵11を操作すれば、シンボル103にて指定された位置の鍵11をシンボル103にて指定された時期に操作することができる。   In the lane 102, a symbol 103 for designating the position of the key 11 to be operated by the user and the time when the operation should be performed is displayed. The symbol 103 is shown as a note-like shape as an example, but is not limited to this and may be in an appropriate shape. The symbol 103 is displayed on the lane 102 corresponding to the key 11 to be operated by the user. That is, the position where the user should perform the operation is specified depending on which lane 102 the symbol 103 is displayed on. However, the symbol 103 may be displayed with a width corresponding to the plurality of lanes 102. For example, the symbol 103 may be displayed so as to overlap with the lane 102 adjacent in the left-right direction with the lane 102 corresponding to the key 11 to be operated by the user as the center. The symbol 103 appears at the upper end portion of the lane 102 at a predetermined time, and gradually descends the lane 102 as indicated by the arrow D as the music playback progresses. The symbol 103 coincides with the reference area 104 at the lower end of the lane 102 when the key 11 is to be operated. Thereby, the time when the key 11 corresponding to the symbol 103 should be operated is designated. In FIG. 5, the symbol 103 overlaps the reference region 104 in the third lane 102 from the left. If the user operates the key 11 corresponding to the lane 102 on which the symbol 103 is displayed at the timing when the symbol 103 overlaps the reference area 104, the key 11 at the position specified by the symbol 103 is changed to the symbol 103. Can be operated at the specified time.

シンボル103がレーン102の上端部に出現する時期は、そのシンボル103によって指定されるべき操作の時期に対して所定秒時早い時期に設定される。一例として、出現時期は、操作時期に対して楽曲の二小節に相当する時間長だけ先行した時刻に設定される。したがって、レーン102の基準領域104の中央をゲーム上の現在時刻Taとすれば、レーン102の上端部に位置するシンボル103は現在時刻に対して所定秒後の時刻Tbに操作時期が到来することを示している。また、基準領域104から各シンボル103までの上下方向における距離は、現在時刻から各シンボル103にて指定される操作時期までの時間差△Tを示している。   The time at which the symbol 103 appears at the upper end of the lane 102 is set to a time earlier by a predetermined number of seconds than the operation time to be specified by the symbol 103. As an example, the appearance time is set to a time preceding the operation time by a time length corresponding to two measures of the music. Therefore, if the center of the reference area 104 of the lane 102 is the current time Ta on the game, the operation timing of the symbol 103 positioned at the upper end of the lane 102 arrives at a time Tb that is a predetermined second after the current time. Is shown. The vertical distance from the reference area 104 to each symbol 103 indicates the time difference ΔT from the current time to the operation time specified by each symbol 103.

図4に示した操作指示部52は、操作指示データDG2に基づいて現在時刻Taから所定秒時後の時刻Tbまでの間に操作時期が到来する操作を判別し、判別した操作の位置に対応したレーン102上にて基準領域104から時間差△Tに対応する距離だけ上方に離れた位置にシンボル103が配置されるように、各シンボル103の位置を演算する。そのような処理を操作指示画面100の描画周期に応じて繰り返すことにより、操作指示画面100の各レーン102をシンボル103が徐々に下降して操作時期に基準領域104に到達する画像が表示装置3上に表示される。それにより、ユーザに対して操作指示データDG2に記述されている操作が逐次指示され、ユーザはその指示に合わせて鍵11を操作するようにしてゲームをプレイする。なお、レーン102は必ずしも上下方向に直線状に延ばされている必要はない。レーン102の一部又は全部が曲線を描くように規定されてもよい。シンボル103の移動方向も上下方向に限らない。画面の奥から手前に向かってシンボル103が移動し、画面の左右方向にシンボル103が移動し、あるいは画面内で移動方向を適宜に変更しつつシンボル103が基準領域104に向かって移動するように操作指示画面100の表示が制御されてもよい。シンボル103の移動速度も一定速度に限らず、適宜に速度が変更されてもよい。レーン102間でシンボル103の移動速度に差が生じるようにシンボル103の表示が制御されてもよい。さらに、楽曲の適当な範囲ごと、例えば2小節ごとにシンボル103を固定的に表示し、楽曲の進行に応じて基準領域104が移動するように操作指示画面100の表示が制御されてもよい。   The operation instruction unit 52 shown in FIG. 4 determines an operation whose operation time comes between the current time Ta and a time Tb after a predetermined time based on the operation instruction data DG2, and corresponds to the determined operation position. The position of each symbol 103 is calculated so that the symbol 103 is arranged on the lane 102 at a position away from the reference region 104 by a distance corresponding to the time difference ΔT. By repeating such processing according to the drawing cycle of the operation instruction screen 100, an image in which the symbol 103 gradually descends in each lane 102 of the operation instruction screen 100 and reaches the reference region 104 at the operation time is displayed on the display device 3. Displayed above. Thereby, the operation described in the operation instruction data DG2 is sequentially instructed to the user, and the user plays the game by operating the key 11 in accordance with the instruction. The lane 102 does not necessarily have to be linearly extended in the vertical direction. A part or all of the lane 102 may be defined to draw a curve. The moving direction of the symbol 103 is not limited to the vertical direction. The symbol 103 moves from the back to the front of the screen, the symbol 103 moves in the left-right direction of the screen, or the symbol 103 moves toward the reference region 104 while appropriately changing the moving direction in the screen. The display of the operation instruction screen 100 may be controlled. The moving speed of the symbol 103 is not limited to a constant speed, and the speed may be changed as appropriate. The display of the symbol 103 may be controlled so that the moving speed of the symbol 103 differs between the lanes 102. Furthermore, the display of the operation instruction screen 100 may be controlled so that the symbol 103 is fixedly displayed for every appropriate range of the music, for example, every 2 bars, and the reference area 104 moves according to the progress of the music.

操作指示部52が上記の処理によってユーザに操作を指示する間、これと並行して、操作処理部53は鍵盤部5の磁気センサ31の出力に基づいて各鍵11に対する操作の有無を判定する。操作評価部54は、操作処理部53の判定したユーザの実際の操作と、操作指示データDG2に記述された操作とを比較してユーザのプレイを評価する。操作指示データDG2に記述された操作とユーザが実際に行った操作との一致度が高いほどユーザのプレイが高く評価される。一致度は、操作の位置及び操作の時期の両者の観点で判定される。操作の時期の一致度は、操作指示データDG2にて指定された操作の時期と、実際に操作が行われた時期とのずれ量に基づいて、複数段階で評価するといった公知の音楽ゲーム機のそれと同様の手法で行われる。一方、操作の位置に関しては、指定された鍵11が正しく操作されたか否かに基づいて行われる。   In parallel with this, the operation processing unit 53 determines whether or not each key 11 is operated based on the output of the magnetic sensor 31 of the keyboard unit 5 while the operation instruction unit 52 instructs the user to perform the operation through the above processing. . The operation evaluation unit 54 evaluates the user's play by comparing the actual operation of the user determined by the operation processing unit 53 with the operation described in the operation instruction data DG2. The higher the degree of coincidence between the operation described in the operation instruction data DG2 and the operation actually performed by the user, the higher the user's play is evaluated. The degree of coincidence is determined from the viewpoint of both the position of the operation and the timing of the operation. The degree of coincidence of the operation time is determined by a plurality of stages based on a deviation amount between the operation time specified in the operation instruction data DG2 and the actual operation time. It is done in the same way. On the other hand, the operation position is determined based on whether or not the designated key 11 has been operated correctly.

以上のゲーム機1においては、鍵11が操作されたと判定されるときの鍵11の操作量にばらつきが存在すると、反応しやすい鍵11と反応しにくい鍵11とが混在して各鍵11の操作感と実際のゲーム機1の反応との間にばらつきが生じ、それによりユーザが違和感を覚えるなどしてゲームの興趣が損なわれるおそれがある。そのため、鍵11が操作されたと判定される際の操作量は鍵11を問わず略一定であることが望ましい。しかしながら、鍵盤部5において、鍵11同士の間には製造誤差、取付誤差といった機械的誤差が存在する。例えば、図6に示すように、磁気センサ31が略一定の高さで取り付けられていても、鍵11の位置が上下方向に誤差を伴っていれば、各鍵11が未操作状態にあるときの磁気センサ31と磁石32との距離が鍵11間で不均一となることがある。この場合、各鍵11が未操作状態にあるときの磁気センサ31の計測値が鍵11間でばらつく。したがって、鍵11の操作量と磁気センサ31が出力する計測値との関係が鍵11間で必ずしも一致しないおそれがある。また、磁気センサ31の計測値は周囲の気温、湿度、あるいは磁場といった外部環境の影響を受けて変化する。外部環境の変化には、磁石32の温度変化により磁場が変化するといった場合も含まれる。そのため、未操作状態における磁気センサ31と磁石32との距離が変化していないにも拘わらず、外部環境の影響で磁気センサ31から出力される計測値が変化することがある。したがって、各鍵11の操作の有無を正しく判定するためには、鍵11の機械的誤差や外部環境の変化が磁気センサ31の計測値に与える影響を磁気センサ31ごとに補償し、各鍵11の操作量と磁気センサ31の計測値との対応関係を正しく調整する必要がある。   In the above game machine 1, if there is a variation in the amount of operation of the key 11 when it is determined that the key 11 has been operated, the key 11 that is likely to react and the key 11 that is less likely to react are mixed. There is a variation between the feeling of operation and the actual reaction of the game machine 1, which may impair the interest of the game, such as the user feeling uncomfortable. Therefore, it is desirable that the operation amount when it is determined that the key 11 is operated is substantially constant regardless of the key 11. However, in the keyboard portion 5, there are mechanical errors such as manufacturing errors and mounting errors between the keys 11. For example, as shown in FIG. 6, even when the magnetic sensor 31 is attached at a substantially constant height, each key 11 is in an unoperated state if the position of the key 11 has an error in the vertical direction. The distance between the magnetic sensor 31 and the magnet 32 may be nonuniform between the keys 11. In this case, the measured value of the magnetic sensor 31 when each key 11 is in an unoperated state varies between the keys 11. Therefore, the relationship between the operation amount of the key 11 and the measurement value output from the magnetic sensor 31 may not necessarily match between the keys 11. Further, the measurement value of the magnetic sensor 31 changes under the influence of the external environment such as ambient temperature, humidity, or magnetic field. The change in the external environment includes the case where the magnetic field changes due to the temperature change of the magnet 32. Therefore, although the distance between the magnetic sensor 31 and the magnet 32 in the unoperated state has not changed, the measurement value output from the magnetic sensor 31 may change due to the influence of the external environment. Therefore, in order to correctly determine whether or not each key 11 has been operated, the influence of the mechanical error of the key 11 or a change in the external environment on the measurement value of the magnetic sensor 31 is compensated for each magnetic sensor 31, and each key 11 Therefore, it is necessary to correctly adjust the correspondence between the operation amount and the measurement value of the magnetic sensor 31.

そこで、操作処理部53では以下の手法により、鍵11の機械的誤差や外部環境の変化が磁気センサ31の計測値に与える影響を補償して操作感のばらつきを抑制し、又は防止している。まず、図7を参照してその基本的手法を説明する。図7は適宜の時間長をサンプリング期間として設定し、その期間内における一つの磁気センサ31の計測値の変化を記録した例である。図中の横軸は時間を、縦軸は磁気センサ31の計測値をそれぞれ示している。また、図7の波形は、磁気センサ31から出力される計測値Vaの変化を示している。なお、磁気センサ31と磁石32との距離は設計値通りに調整されていると仮定する。   Therefore, the operation processing unit 53 compensates for the influence of the mechanical error of the key 11 and the change in the external environment on the measurement value of the magnetic sensor 31 by the following method to suppress or prevent the variation in the operational feeling. . First, the basic method will be described with reference to FIG. FIG. 7 is an example in which an appropriate time length is set as a sampling period, and a change in the measured value of one magnetic sensor 31 in that period is recorded. In the figure, the horizontal axis represents time, and the vertical axis represents the measurement value of the magnetic sensor 31. Further, the waveform of FIG. 7 shows a change in the measured value Va output from the magnetic sensor 31. It is assumed that the distance between the magnetic sensor 31 and the magnet 32 is adjusted as designed.

図7の例では、磁気センサ31と磁石32との距離が減少するほど磁気センサ31の計測値Va(実際に出力される計測値)が小さい値に変化する。したがって、計測値Vaが最大値Vmaxに保持される時刻t1〜t2の間、及び時刻t5〜t6の間は、鍵11が未操作状態の位置にあると推定することができる。また、時刻t2〜t5間、及び時刻t6〜t7間では計測値Vaが変化しているため、鍵11が押し込み操作されているものと推定される。計測値が最小値Vminとなる時刻t3〜t4の間は鍵11が最大限に押し込まれた状態と推定することができる。さらに、任意の時刻txにおける計測値Vmaxと計測値Vaとの差△dxは、鍵11の押し込み操作に伴う計測値の変化量であり、その変化量△dxは鍵11の未操作状態からの操作量を示す物理量として扱うことができる。   In the example of FIG. 7, as the distance between the magnetic sensor 31 and the magnet 32 decreases, the measurement value Va (measurement value actually output) of the magnetic sensor 31 changes to a smaller value. Therefore, it can be estimated that the key 11 is in the unoperated state during the time t1 to t2 when the measured value Va is held at the maximum value Vmax and during the time t5 to t6. Moreover, since the measured value Va is changing between the times t2 and t5 and between the times t6 and t7, it is estimated that the key 11 is pressed. It can be estimated that the key 11 is pushed to the maximum during time t3 to t4 when the measured value becomes the minimum value Vmin. Furthermore, the difference Δdx between the measured value Vmax and the measured value Va at an arbitrary time tx is the amount of change in the measured value accompanying the pressing operation of the key 11, and the amount of change Δdx is from the unoperated state of the key 11. It can be handled as a physical quantity indicating the manipulated variable.

図7の計測値Vonはマイクロスイッチユニット42のクリック感が発生するときに磁気センサ31から出力されるべき計測値である。言い換えれば、計測値Vonは、マイクロスイッチユニット42の内部接点が切り替わるときに磁気センサ31から出力されることが予想される計測値である。以下では計測値Vonを判定値と呼ぶことがある。ユーザがクリック感を感得するまで鍵11を押し込み操作した場合に、その鍵11が押し込み操作されたと判定するためには、計測値Vaが判定値Von以下まで減少したか否かを判定すればよいことになる。時刻t2〜t5の間では計測値Daが判定値Vonよりも減少しているので鍵11の操作があったと判定することができる。一方、時刻t6〜t7の間では計測値Vaが計測値Vonよりも大きいので鍵11が操作されたと判定されることがない。   The measured value Von in FIG. 7 is a measured value to be output from the magnetic sensor 31 when a click feeling of the micro switch unit 42 occurs. In other words, the measured value Von is a measured value that is expected to be output from the magnetic sensor 31 when the internal contact of the micro switch unit 42 is switched. Hereinafter, the measurement value Von may be referred to as a determination value. When the user presses the key 11 until the user feels a click feeling, in order to determine that the key 11 has been pressed, it is only necessary to determine whether or not the measurement value Va has decreased to a determination value Von or less. It will be. Between the times t2 and t5, since the measured value Da is smaller than the determination value Von, it can be determined that the key 11 has been operated. On the other hand, since the measured value Va is larger than the measured value Von between times t6 and t7, it is not determined that the key 11 has been operated.

しかしながら、上述したように、未操作状態の計測値Vmaxは鍵11等の機械的誤差により磁気センサ31間でばらつき、それに伴って未操作状態における計測値Vmaxも磁気センサ31間でばらつく。例えば、任意の鍵11が未操作状態にあるときの磁気センサ31の計測値がより大きな値Vmax′にずれたものとすれば、その磁気センサ31の計測値の変化量△dxは鍵11の実際の操作量に対応して計測されるべき変化量よりも小さくなる。あるいは、気温、湿度、磁場といった外部環境が変化した場合にも未操作状態における磁気センサ31の計測値は変化する。したがって、実際の計測値Vaを単純に判定値Vonと比較するだけでは鍵11の操作の有無を正しく判定することができない。このような不都合は、次に述べる手法により解消することができる。   However, as described above, the measured value Vmax in the unoperated state varies between the magnetic sensors 31 due to mechanical errors of the key 11 and the like, and accordingly, the measured value Vmax in the unoperated state varies between the magnetic sensors 31. For example, if the measured value of the magnetic sensor 31 when an arbitrary key 11 is in an unoperated state is shifted to a larger value Vmax ′, the change amount Δdx of the measured value of the magnetic sensor 31 is The amount of change is smaller than the amount of change to be measured corresponding to the actual operation amount. Alternatively, the measured value of the magnetic sensor 31 in an unoperated state also changes when the external environment such as temperature, humidity, and magnetic field changes. Therefore, it is not possible to correctly determine whether or not the key 11 is operated by simply comparing the actual measurement value Va with the determination value Von. Such inconvenience can be solved by the following method.

まず、全ての磁気センサ31の計測値に関して共通の基準値を設定する。一例として、図7の計測値Vmaxを基準値として全ての磁気センサ31に設定する。次に、鍵11が未操作状態にあることを計測値Vaに基づいて鍵11ごとに判別する。例えば、磁気センサ31の計測値Vaがその変化範囲内における最大値に保持された状態(計測値が変化しない状態、としてもよい。)が一定時間継続している場合、その磁気センサ31に対応する鍵11が未操作状態であると判定することができる。次に、鍵11が未操作状態にあるときの磁気センサ31の計測値Vaを取得し、その計測値Vaと基準値Vmaxとの差Cdを磁気センサ31の計測値に関する補整値として算出する。補整値には正負がある。例えば、図7では磁気センサ31と磁石32との距離が大きいほど計測値が増大するので、例えば鍵11が未操作状態にあるときの計測値Vaが基準値Vmaxよりも大きいときは補整値が正の値として算出される。反対に鍵11が未操作状態にあるときの計測値Vaが基準値Vmaxよりも小さいときは補整値が負の値として算出される。未操作状態における計測値が図7のVmax′であれば、補整値は+Cdである。そして、鍵11の操作の有無を判定する場合には、基準値Vmaxに補整値Cdを加算した値から実際の計測値Vaを減算することにより、鍵11に対応する磁気センサ31の計測値の変化量△dxを算出する。その変化量△dxを、基準値Vmaxと判定値Vonとの差分である閾値△dthと大小比較することにより、各鍵11の操作の有無を一定の基準でばらつきなく判定することができる。   First, a common reference value is set for the measurement values of all the magnetic sensors 31. As an example, the measurement value Vmax in FIG. 7 is set as a reference value for all the magnetic sensors 31. Next, it is determined for each key 11 that the key 11 is in an unoperated state based on the measured value Va. For example, when the state where the measured value Va of the magnetic sensor 31 is held at the maximum value within the change range (a state where the measured value does not change) continues for a certain period of time, the magnetic sensor 31 is handled. It can be determined that the key 11 to be operated is in an unoperated state. Next, the measurement value Va of the magnetic sensor 31 when the key 11 is in an unoperated state is acquired, and the difference Cd between the measurement value Va and the reference value Vmax is calculated as a compensation value for the measurement value of the magnetic sensor 31. There are positive and negative correction values. For example, in FIG. 7, the measured value increases as the distance between the magnetic sensor 31 and the magnet 32 increases. For example, when the measured value Va when the key 11 is in an unoperated state is greater than the reference value Vmax, the compensation value is Calculated as a positive value. On the other hand, when the measured value Va when the key 11 is not operated is smaller than the reference value Vmax, the compensation value is calculated as a negative value. If the measured value in the unoperated state is Vmax ′ in FIG. 7, the compensation value is + Cd. When determining whether or not the key 11 is operated, the actual measured value Va is subtracted from the value obtained by adding the correction value Cd to the reference value Vmax, thereby obtaining the measured value of the magnetic sensor 31 corresponding to the key 11. A change amount Δdx is calculated. By comparing the amount of change Δdx with a threshold value Δdth, which is the difference between the reference value Vmax and the determination value Von, it is possible to determine whether or not each key 11 has been operated on a constant basis without variation.

上記の手法をより具体的な数値を当てはめて説明すれば次の通りである。まず、全ての磁気センサ31に対して設定される基準値を100とし、特定の鍵11(以下、これを鍵Aと表記する。)が未操作状態のときの磁気センサ31の計測値が80、他の特定の鍵11(以下、これを鍵Bと表記する。)が未操作状態のときの磁気センサ31の計測値が110、操作ありと判定されるときの判定値Vonが50、変化量△dxの閾値△dthが50であったとする。この場合、鍵Aについての補整値は80−100=−20であり、鍵Bについての補整値は110−100=+10である。鍵Aが操作されたときの磁気センサ31の計測値が40であったとすれば、鍵Aに関する計測値の変化量△dxは100−20−40=40で、その変化量△dxは閾値△dth=50に満たない。よって鍵Aは押し込み操作されていないと判定される。一方、鍵Bが操作されたときの磁気センサ31の計測値が60であったとすれば、鍵Bに関する計測値の変化量△dxは100+10−60=50で、その変化量△dxは閾値△dth=50と等しい。よって鍵Bは押し込み操作されたと判定される。なお、仮に、補整値を用いることなく基準値とA、鍵Bのそれぞれの計測値との差分を閾値と比較すれば、鍵Aの変化量は100−40=60で鍵Aが操作されたと判定され、鍵Bの変化量は100−60=40で鍵Bは操作されていないと判定される。判定値Von=50として計測値と単純に比較した場合も同様に誤判定が生じる。なお、上記では基準値を図7の計測値Vmaxに設定したが、基準値は全ての磁気センサ31間で共通の値に設定されていれば足り、適宜の値が基準値として設定されてよい。   The above method can be explained by applying more specific numerical values as follows. First, the reference value set for all the magnetic sensors 31 is 100, and the measured value of the magnetic sensor 31 when the specific key 11 (hereinafter referred to as the key A) is not operated is 80. The measured value of the magnetic sensor 31 when the other specific key 11 (hereinafter referred to as the key B) is not operated is 110, and the determination value Von when the operation is determined to be 50 is changed. It is assumed that the threshold value Δdth of the amount Δdx is 50. In this case, the compensation value for key A is 80-100 = -20, and the compensation value for key B is 110-100 = + 10. If the measured value of the magnetic sensor 31 when the key A is operated is 40, the change amount Δdx of the measurement value related to the key A is 100−20−40 = 40, and the change amount Δdx is the threshold value Δ It is less than dth = 50. Therefore, it is determined that the key A has not been pressed. On the other hand, if the measurement value of the magnetic sensor 31 when the key B is operated is 60, the change amount Δdx of the measurement value related to the key B is 100 + 10−60 = 50, and the change amount Δdx is the threshold value Δ It is equal to dth = 50. Therefore, it is determined that the key B has been pressed. If the difference between the reference value and the measured values of A and B is compared with a threshold value without using a correction value, the change amount of the key A is 100-40 = 60 and the key A is operated. It is determined that the change amount of the key B is 100−60 = 40, and it is determined that the key B is not operated. Similarly, when the determination value Von = 50 is simply compared with the measured value, an erroneous determination occurs. In the above description, the reference value is set to the measured value Vmax in FIG. 7, but it is sufficient that the reference value is set to a common value among all the magnetic sensors 31, and an appropriate value may be set as the reference value. .

次に、図8〜図10を参照して、上述した手法により鍵11の操作の有無を判定するための操作処理部53の具体的構成及び制御手順を説明する。図8に示すように、操作処理部53には、操作判定部60、未操作状態検出部61及び補整値算出部62がさらなる論理的装置として設けられる。なお、図8では鍵11ごとに設けられている磁気センサ31をセンサ番号#1〜#Nの添え字を付して相互に区別して示している。操作判定部60は各磁気センサ31から出力される計測値Vaに従って磁気センサ31ごとの計測値の変化量△dxを鍵11の操作量として算出し、その変化量△dxを閾値△dthと大小比較して鍵11ごとに操作の有無を判定する。操作判定部60の算出結果は操作評価部54に提供されてユーザの操作の評価に用いられる。   Next, a specific configuration and control procedure of the operation processing unit 53 for determining whether or not the key 11 is operated will be described with reference to FIGS. As shown in FIG. 8, the operation processing unit 53 is provided with an operation determination unit 60, an unoperated state detection unit 61, and a correction value calculation unit 62 as further logical devices. In FIG. 8, the magnetic sensors 31 provided for each key 11 are shown separately from each other with the subscripts of sensor numbers # 1 to #N. The operation determination unit 60 calculates the change amount Δdx of the measurement value for each magnetic sensor 31 as the operation amount of the key 11 in accordance with the measurement value Va output from each magnetic sensor 31, and the change amount Δdx is as large as the threshold value Δdth. In comparison, the presence or absence of an operation is determined for each key 11. The calculation result of the operation determination unit 60 is provided to the operation evaluation unit 54 and used for evaluation of the user's operation.

未操作状態検出部61は、各磁気センサ31から出力される計測値Vaに基づいて鍵11の未操作状態を鍵11ごとに検出し、未操作状態にある場合の磁気センサ31の計測値Vmax′をセンサ番号と対応付けて補整値算出部62に提供する。補整値算出部62は、鍵11が未操作状態にあるときの磁気センサ31の計測値Vmax′と所定の基準値との差分に基づいて磁気センサ31ごとに補整値Cdを算出し、算出結果を操作判定部60にセンサ番号と対応付けて提供する。操作判定部60には、磁気センサ31のセンサ番号と補整値Cdとを対応付けて記録した補整値データDCが保持されている。操作判定部60は、補整値算出部62から提供される補整値Cdが補整値データDCに反映されるように補整値データDCを更新する。   The unoperated state detection unit 61 detects the unoperated state of the key 11 for each key 11 based on the measured value Va output from each magnetic sensor 31, and the measured value Vmax of the magnetic sensor 31 in the unoperated state. 'Is associated with the sensor number and provided to the correction value calculation unit 62. The compensation value calculation unit 62 calculates the compensation value Cd for each magnetic sensor 31 based on the difference between the measured value Vmax ′ of the magnetic sensor 31 when the key 11 is not operated and a predetermined reference value, and the calculation result Is provided to the operation determination unit 60 in association with the sensor number. The operation determination unit 60 holds correction value data DC in which the sensor number of the magnetic sensor 31 and the correction value Cd are recorded in association with each other. The operation determination unit 60 updates the compensation value data DC so that the compensation value Cd provided from the compensation value calculation unit 62 is reflected in the compensation value data DC.

図9は、操作処理部53が補整値Cdを更新するために実行する補整値更新処理の手順を示している。図9の処理はゲーム機1が稼動している間の適宜の時期に実行される。例えば、ユーザにより音楽ゲームがプレイされている間に少なくとも一回は図9の処理が実行される。図9では一つの磁気センサ31に対応した処理の手順を示したが、他の磁気センサ31に関しても図9の処理が音楽ゲームのプレイ中に少なくとも一回は実行される。ゲームのプレイ中に図9の処理を行うことにより、プレイ中に鍵11の未操作状態における位置がずれ、あるいはプレイ中に磁気センサ31の周囲の温度や磁石32の温度が上昇する、といったように磁気センサ31の計測値に影響を与えるような機械的変化あるいは環境的な変化が生じた場合でも、それらの変化が磁気センサ31の計測値に与える影響を排除して鍵11の操作の有無を正しく判定することができる。   FIG. 9 shows the procedure of the compensation value update process executed by the operation processing unit 53 to update the compensation value Cd. The process of FIG. 9 is executed at an appropriate time while the game machine 1 is operating. For example, the process of FIG. 9 is executed at least once while a music game is played by the user. Although FIG. 9 shows a processing procedure corresponding to one magnetic sensor 31, the processing of FIG. 9 is executed at least once for the other magnetic sensors 31 during the play of the music game. By performing the process of FIG. 9 during the game play, the position of the key 11 in an unoperated state is shifted during the play, or the temperature around the magnetic sensor 31 and the temperature of the magnet 32 are raised during the play. Even if a mechanical change or an environmental change that affects the measurement value of the magnetic sensor 31 occurs, the influence of the change on the measurement value of the magnetic sensor 31 is excluded, and whether or not the key 11 is operated. Can be determined correctly.

なお、ゲームのプレイ中における処理は、一定の周期で繰り返して実行されるものとしてもよいし、鍵11が未操作状態である可能性が相対的に高い時期を予め操作指示データDG2等で指定し、その指定された時期に各磁気センサ31を対象として図9の処理が実行されてもよい。例えば、音楽ゲームには、小節の区切り、楽曲の変調箇所といったような音楽上の区切りに合わせてユーザへの操作指示が一時的に休止される期間が存在することがある。そのような期間が存在する場合には、その時期を操作指示データDG2等で予め指定し、その指定に合わせて図9の処理が実行されるものとしてもよい。その他に、図9の処理は、ゲーム機1が起動された場合、一日のうちの複数の時間帯のそれぞれといった定刻に実行されてもよい。起動時に図9の処理を実行すれば、その日の気温、湿度、磁場等に合わせて補整値を更新することができる。また、複数の時間帯のそれぞれで図9の処理を実行すれば、一日の間の気温変化等に対応して補整値を更新することができる。さらに、ゲーム機1が設置された場所の空調の変化に合わせて図9の処理が実行されてもよい。   It should be noted that the processing during the game play may be repeatedly executed at a constant cycle, or the operation instruction data DG2 or the like is designated in advance at a time when the possibility that the key 11 is not operated is relatively high. Then, the process of FIG. 9 may be executed for each magnetic sensor 31 at the designated time. For example, in a music game, there may be a period in which an operation instruction to a user is temporarily suspended in accordance with a musical break such as a break of a measure or a modulation part of a song. When such a period exists, the timing may be designated in advance by the operation instruction data DG2 or the like, and the process of FIG. 9 may be executed in accordance with the designation. In addition, when the game machine 1 is activated, the process of FIG. 9 may be executed on time such as each of a plurality of time zones in a day. If the process of FIG. 9 is executed at the time of startup, the correction value can be updated in accordance with the temperature, humidity, magnetic field, etc. of the day. Moreover, if the process of FIG. 9 is performed in each of a plurality of time zones, the compensation value can be updated in accordance with the temperature change during the day. Furthermore, the process of FIG. 9 may be executed in accordance with the change in air conditioning at the place where the game machine 1 is installed.

図9の処理が開始されると、まず磁気センサ31からサンプリング期間内の計測値Vaが未操作状態検出部61に取り込まれる(ステップS11)。次に、得られた計測値Vaの波形中に未操作状態が存在するか否かが未操作状態検出部61にて判別される(ステップS12)。この処理は、計測値Vaが所定時間続けて最大値に保持されている部分がサンプリング期間内の計測値波形に存在するか否かを検査することにより行われる。未操作状態が検出されない場合、操作処理部53は今回の処理を終了する。一方、ステップS12にて未操作状態が検出された場合には、その未操作状態における計測値Vmax′がセンサ番号と対応付けて補整値算出部62に提供される。補整値算出部62では、与えられた計測値Vmax′と予め与えられた基準値との差分が補整値Cdとして算出される(ステップS13)。基準値は上記の通り全ての磁気センサ31に対して共通に設定される値である。補整値Cdが算出されると、その補整値Cdがセンサ番号と対応付けて操作判定部60に提供される。操作判定部60では、センサ番号に対応する補整値Cdが新たに提供された補整値Cdにて置き換えられるように補整値データDCが更新される(ステップS14)。ステップS14の処理後、操作処理部53は今回の図9の処理を終える。   When the process of FIG. 9 is started, first, the measurement value Va within the sampling period is taken into the non-operation state detection unit 61 from the magnetic sensor 31 (step S11). Next, whether or not an unoperated state exists in the waveform of the obtained measurement value Va is determined by the unoperated state detection unit 61 (step S12). This process is performed by examining whether or not a portion where the measured value Va is held at the maximum value for a predetermined time is present in the measured value waveform within the sampling period. If an unoperated state is not detected, the operation processing unit 53 ends the current process. On the other hand, when the non-operating state is detected in step S12, the measured value Vmax ′ in the non-operating state is provided to the correction value calculating unit 62 in association with the sensor number. In the compensation value calculation unit 62, the difference between the given measured value Vmax ′ and the reference value given in advance is calculated as the compensation value Cd (step S13). The reference value is a value set in common for all the magnetic sensors 31 as described above. When the compensation value Cd is calculated, the compensation value Cd is provided to the operation determination unit 60 in association with the sensor number. The operation determination unit 60 updates the correction value data DC so that the correction value Cd corresponding to the sensor number is replaced with the newly provided correction value Cd (step S14). After the processing in step S14, the operation processing unit 53 ends the current processing in FIG.

図10は、操作判定部60が補整値Cdを利用して鍵11ごとに操作の有無を判定するために実行する操作判定処理の手順を示している。図10の処理は音楽ゲームがプレイされている間、所定の周期で繰り返し実行される。図10では一つの鍵11に対応する処理の手順を示すが、他の鍵11に関しても図10の処理が同様に実行される。   FIG. 10 shows a procedure of an operation determination process executed by the operation determination unit 60 in order to determine the presence / absence of an operation for each key 11 using the correction value Cd. The process of FIG. 10 is repeatedly executed at a predetermined cycle while the music game is being played. FIG. 10 shows the procedure of processing corresponding to one key 11, but the processing of FIG. 10 is executed in the same manner for other keys 11.

図10の操作判定処理が開始されると、まず磁気センサ31から計測値Vaが読み込まれる(ステップS21)。次に、予め与えられた基準値と補整値データDCに記録されている補整値Cdとの和から磁気センサ31の実際の計測値Vaを減算することにより、鍵11の操作量が算出される(ステップS22)。ここでいう操作量は、鍵11の未操作状態からの現実の操作量に対応した値である。変化量が算出されると、その変化量が閾値以上か否かが判断される(ステップS23)。図7の例であれば、変化量はVmax′−Va(=Vmax+Cd−Va)に相当し、閾値は△dthに相当する。変化量が閾値以上であれば、判定対象の鍵11がオン判定、すなわち押し込み操作されたと判定される(ステップS24)。一方、変化量が閾値未満であれば鍵11はオフ判定、すなわち押し込み操作されていないと判定される(ステップS25)。ステップS24又はS25の判定後は、その判定結果が操作評価部54に通知される(ステップS26)。オン判定された場合、操作判定部60からは、いずれの鍵11が操作されたかを示す情報と、その鍵11が操作された時期を判別する情報が操作評価部54に併せて通知される。その後、操作処理部53は今回の図10の処理を終える。なお、ステップS22にて使用される補整値Cdは補整値データDCに記録されている最新の補整値Cdであり、補整値データDCがさらに新しい補整値Cdにて更新されるまでは同一の補整値CdがステップS22にて使用される。   When the operation determination process of FIG. 10 is started, the measurement value Va is first read from the magnetic sensor 31 (step S21). Next, the operation amount of the key 11 is calculated by subtracting the actual measurement value Va of the magnetic sensor 31 from the sum of the reference value given in advance and the correction value Cd recorded in the correction value data DC. (Step S22). The operation amount here is a value corresponding to the actual operation amount from the unoperated state of the key 11. When the amount of change is calculated, it is determined whether or not the amount of change is greater than or equal to a threshold value (step S23). In the example of FIG. 7, the change amount corresponds to Vmax′−Va (= Vmax + Cd−Va), and the threshold value corresponds to Δdth. If the amount of change is equal to or greater than the threshold, it is determined that the determination target key 11 has been turned on, that is, pressed (step S24). On the other hand, if the amount of change is less than the threshold value, it is determined that the key 11 is off, that is, it is not pressed (step S25). After the determination in step S24 or S25, the determination result is notified to the operation evaluation unit 54 (step S26). When it is determined to be on, the operation determination unit 60 notifies the operation evaluation unit 54 of information indicating which key 11 has been operated and information for determining when the key 11 has been operated. Thereafter, the operation processing unit 53 ends the process of FIG. The compensation value Cd used in step S22 is the latest compensation value Cd recorded in the compensation value data DC, and the same compensation is performed until the compensation value data DC is updated with a new compensation value Cd. The value Cd is used in step S22.

なお、図10のステップS22では鍵11の操作量として、磁気センサ31の計測値の変化量△dxを算出しているが、磁気センサ31と磁石32との間の実際の距離と磁気センサ31の計測値Vaとの対応関係を予め計測して両者を関連付ける係数又は関数を求め、計測値の変化量△dxをその係数又は関数に従って距離に換算してもよい。その場合、図10のステップS23における閾値は、鍵11が押し込み操作されたと判定されるべき磁気センサ31と磁石32との間の距離として設定することができる。つまり、鍵11の押し込み操作の操作量は、磁気センサ31と磁石32との距離の実際の変化量それ自体に限定されず、距離の変化量と相関する各種の物理量を含む概念である。上記の係数又は関数が磁気センサ31ごとに異なる場合、磁気センサ31ごとに係数又は関数を設定し、磁気センサ31ごとに計測値の変化量△dxを距離へ換算することが必要である。さらに、上記の係数又は関数が気温、湿度、磁場等の外部環境に応じて変化する場合には、それらの外部環境を適宜の手段にて取得し、その変化に合わせて係数又は関数それ自体を補正してもよい。外部環境の取得手段としては、ゲーム機1を商業的に運用するオペレータが入力し、あるいはインターネット上で気温等の情報を提供するサイトから取得し、あるいは気温センサ等の検出手段を用いて検出するといった適宜の手段が採用可能である。そのような手段にて気温等の外部環境を取得する場合には、その変化をトリガとして図9の処理が実行されてもよい。   In step S22 in FIG. 10, the change amount Δdx of the measured value of the magnetic sensor 31 is calculated as the operation amount of the key 11. However, the actual distance between the magnetic sensor 31 and the magnet 32 and the magnetic sensor 31 are calculated. The coefficient or function that correlates the measured value Va with the measured value Va is obtained in advance, and the change amount Δdx of the measured value may be converted into a distance according to the coefficient or function. In that case, the threshold value in step S23 of FIG. 10 can be set as the distance between the magnetic sensor 31 and the magnet 32 to be determined that the key 11 has been pressed. That is, the operation amount of the pressing operation of the key 11 is not limited to the actual change amount itself of the distance between the magnetic sensor 31 and the magnet 32, but is a concept including various physical quantities correlated with the change amount of the distance. When the above coefficient or function is different for each magnetic sensor 31, it is necessary to set the coefficient or function for each magnetic sensor 31 and convert the change amount Δdx of the measured value into a distance for each magnetic sensor 31. Furthermore, when the above coefficients or functions change according to the external environment such as temperature, humidity, magnetic field, etc., those external environments are acquired by appropriate means, and the coefficient or function itself is adjusted according to the change. It may be corrected. As an external environment acquisition means, an operator who operates the game machine 1 commercially inputs it, acquires it from a site providing information such as temperature on the Internet, or detects it using a detection means such as an air temperature sensor. Appropriate means such as can be adopted. When acquiring external environment, such as temperature, by such means, the process of FIG. 9 may be performed by using the change as a trigger.

以上の形態においては、操作判定部60にて鍵11の操作の有無を判別するものとし、操作評価部54では、いずれの鍵11がいつ操作されたかに基づいて操作を評価しているが、これに代えて、又は加えて鍵11が操作される速度、あるいは加速度といった操作量の時間的変化が操作評価部54における評価で考慮されてもよい。例えば、図11に示すように、操作処理部53に速度算出部63を追加し、図10のステップS22にて算出された変化量を速度算出部63に提供して変化量を微分することにより、鍵11の押し込み操作の速度をさらに算出し、その算出結果を操作評価部54に提供してもよい。速度算出部63に代えて、又は加えて押し込み操作の変化量を二回微分して押し込み操作の加速度を時間的変化量として算出し、その算出結果を操作評価部54に提供する加速度算出部が設けられてもよい。加速度を算出する場合には押し込み操作の操作力を求めることができるので、どの程度の力で鍵11が押し込み操作されたかを判別し、その判別結果を操作の評価に用いてもよい。あるいは、操作力の判別結果を、操作に伴って発音されるべき効果音に反映させるといった処理を追加することもできる。   In the above embodiment, the operation determination unit 60 determines whether or not the key 11 is operated, and the operation evaluation unit 54 evaluates the operation based on when which key 11 is operated. Instead of this, or in addition, a temporal change in an operation amount such as a speed at which the key 11 is operated or an acceleration may be considered in the evaluation in the operation evaluation unit 54. For example, as shown in FIG. 11, a speed calculation unit 63 is added to the operation processing unit 53, and the change amount calculated in step S22 of FIG. 10 is provided to the speed calculation unit 63 to differentiate the change amount. Further, the speed of the pressing operation of the key 11 may be further calculated, and the calculation result may be provided to the operation evaluation unit 54. Instead of or in addition to the speed calculation unit 63, an acceleration calculation unit that differentiates the change amount of the push operation twice to calculate the acceleration of the push operation as a time change amount and provides the calculation result to the operation evaluation unit 54. It may be provided. When calculating the acceleration, the operation force of the pushing operation can be obtained. Therefore, it is possible to determine how much the key 11 is pushed and use the determination result for the operation evaluation. Alternatively, it is possible to add a process of reflecting the result of determining the operation force on the sound effect to be pronounced along with the operation.

以上の形態において、未操作状態検出部61は図9のステップS12の処理を実行することにより未操作状態検出手段の一例として機能し、補整値算出部62は図9のステップS13の処理を実行することにより補整値算出手段の一例として機能し、操作判定部60は図10のステップS22の処理を実行することにより操作量算出手段の一例として機能し、操作判定部60は図10のステップS23〜S25の処理を実行することにより操作判定手段の一例として機能する。また、速度算出部63は時間的変化量算出手段の一例として機能する。   In the above embodiment, the non-operation state detection unit 61 functions as an example of the non-operation state detection unit by executing the process of step S12 of FIG. 9, and the compensation value calculation unit 62 executes the process of step S13 of FIG. Thus, the operation determination unit 60 functions as an example of the operation amount calculation unit by executing the process of step S22 of FIG. 10, and the operation determination unit 60 performs step S23 of FIG. It functions as an example of an operation determination unit by executing the processes of S25. The speed calculation unit 63 functions as an example of a temporal change amount calculation unit.

本発明は上述した形態に限定されず、適宜の形態にて実施することができる。例えば、操作部材は長手方向を有するものに限定されず、その形状は適宜でよい。操作部材は押し込み操作される例に限らず、スライド操作、回転操作、レバー操作といった各種の態様で操作される部材が操作部材として設けられてよい。操作部材の操作を検出するためのセンサは磁気センサに限らない。例えば、上記の形態において、磁気センサ31及び磁石32に代えて、近接センサ、光電センサといったように検出対象までの距離に応じた計測値を出力可能な非接触型のセンサが適宜に用いられてよい。上記の形態では、検出対象としての磁石を操作部材側に、センサをベース側に設けているが、ベース側に検出対象が、操作部材側にセンサがそれぞれ設けられてもよい。あるいは、操作部材に連動して変位する他の部材に検出対象を設け、その変位に応じて距離が変わるようにしてセンサが設けられてもよい。   This invention is not limited to the form mentioned above, It can implement with a suitable form. For example, the operating member is not limited to one having a longitudinal direction, and the shape thereof may be appropriate. The operation member is not limited to the push-in operation, and a member that is operated in various modes such as a slide operation, a rotation operation, and a lever operation may be provided as the operation member. The sensor for detecting the operation of the operation member is not limited to a magnetic sensor. For example, in the above embodiment, in place of the magnetic sensor 31 and the magnet 32, a non-contact type sensor that can output a measurement value according to the distance to the detection target, such as a proximity sensor or a photoelectric sensor, is appropriately used. Good. In the above embodiment, the magnet as the detection target is provided on the operation member side and the sensor is provided on the base side. However, the detection target may be provided on the base side, and the sensor may be provided on the operation member side. Alternatively, the detection target may be provided on another member that is displaced in conjunction with the operation member, and the sensor may be provided such that the distance changes according to the displacement.

上記の形態では、鍵11の操作の有無を判定する閾値を全ての操作部材間で共通に設定しているが、複数の操作部材間で閾値が差別化されてもよい。例えば、特定の操作部材に関しては比較的大きな操作、あるいは比較的小さな操作を要求するといったように、ユーザが行うべき操作の量を操作部材間で意図的に変化させてゲームに変化を与える場合もある。そのような場合には、ユーザに要求すべき操作量に応じて操作部材間で閾値を差別化してもよい。本発明は音楽ゲームをプレイさせるゲーム機に限定されず、各種のゲーム機に対して適用することができる。   In the above embodiment, the threshold value for determining whether or not the key 11 is operated is set in common among all the operation members, but the threshold value may be differentiated among a plurality of operation members. For example, there may be a case where a game is changed by intentionally changing the amount of operation to be performed by the user between the operation members, such as requiring a relatively large operation or a relatively small operation with respect to a specific operation member. is there. In such a case, the threshold value may be differentiated between the operation members according to the operation amount to be requested from the user. The present invention is not limited to game machines that play music games, and can be applied to various game machines.

上述した実施の形態及び変形例のそれぞれから導き出される本発明の各種の態様を以下に記載する。なお、以下の説明では、本発明の各態様の理解を容易にするために添付図面に図示された対応する部材を括弧書きにて付記するが、それにより本発明が図示の形態に限定されるものではない。   Various aspects of the present invention derived from each of the above-described embodiments and modifications will be described below. In the following description, in order to facilitate understanding of each aspect of the present invention, the corresponding members illustrated in the accompanying drawings are added in parentheses, but the present invention is thereby limited to the illustrated embodiments. It is not a thing.

本発明の一態様に係るゲーム機の操作装置は、ゲームのユーザによって操作されるべき複数の操作部材(11)と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象(32)及びセンサ(31)とを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機の操作装置において、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段(61、S12)と、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段(62、S13)と、各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段(60、S22)と、を備えたものである。   An operating device for a game machine according to an aspect of the present invention includes a plurality of operating members (11) to be operated by a game user, and the operating members such that the distance between them changes according to the operation of each operating member. Change in the measurement value output by each sensor in the operating device of the game machine, which includes a detection target (32) and a sensor (31) provided for each, and the measurement value is output from the sensor according to the distance. Based on the unoperated state detection means (61, S12) for detecting the unoperated state of each of the plurality of operation members, the reference value relating to the measurement value set in common among the plurality of operation members, and the Compensation value calculation means (62, S13) for calculating, for each sensor, a difference from the measurement value of each sensor when an unoperated state is detected as a compensation value for the measurement value of each sensor, and each sensor outputs Based on the measured value, the reference value, and the correction value calculated by the correction value calculation unit, an operation amount calculation unit (60, 60) that calculates an operation amount from the unoperated state of each of the plurality of operation members. S22).

上記態様の操作装置によれば、複数の操作部材に対して共通の基準値を設定する一方で、各操作部材の未操作状態が検出されたときのセンサの計測値と基準値との差分をセンサごとの補整値として算出し、各センサの実際の計測値と、操作部材間で共通の基準値と、センサごとの補整値とを利用して未操作状態からの各操作部材の操作量を算出しているので、従来のようにセンサごとに初期値を設定してそれらを管理する手間を省略して基準値を一定に保持しつつ、補整値を利用して操作部材ごとに機械的誤差や外部環境の変化が計測値に与える影響を補償して操作部材の操作量を正しく算出することができる。   According to the operating device of the above aspect, while setting a common reference value for a plurality of operating members, the difference between the measured value of the sensor and the reference value when an unoperated state of each operating member is detected is calculated. Calculated as the compensation value for each sensor, and using the actual measured value of each sensor, the common reference value among the operation members, and the compensation value for each sensor, the operation amount of each operation member from the unoperated state is calculated. Since it is calculated, the initial value is set for each sensor as in the past, and the trouble of managing them is omitted and the reference value is kept constant. It is possible to correctly calculate the operation amount of the operation member by compensating for the influence of the change in the external environment and the measurement value.

上記態様の操作装置においては、各操作部材に関して前記操作量算出手段が算出した操作量と所定の閾値との比較に基づいて、各操作部材が操作されたか否かを判別する操作判別手段(60、S23〜S25)をさらに備えてもよい。これによれば、補整値を利用して正しく算出された操作量と閾値との大小比較に基づき、各操作部材が所定量以上操作された否かを正確に判別することができる。   In the operating device according to the aspect described above, the operation determining unit (60) that determines whether each operating member has been operated based on a comparison between the operating amount calculated by the operating amount calculating unit with respect to each operating member and a predetermined threshold value. , S23 to S25) may be further provided. According to this, it is possible to accurately determine whether or not each operation member has been operated by a predetermined amount or more based on the magnitude comparison between the operation amount correctly calculated using the compensation value and the threshold value.

さらに、前記閾値が前記複数の操作部材間で共通に設定されてもよい。これによれば、操作部材間で基準値及び閾値がそれぞれ共通に設定されることにより、各操作部材が一定量操作されたか否かを操作部材間でばらつきなく判別することができる。   Furthermore, the threshold value may be set in common among the plurality of operation members. According to this, since the reference value and the threshold value are set in common between the operation members, it is possible to determine whether or not each operation member has been operated by a certain amount without any variation between the operation members.

上記態様の操作装置においては、各操作部材に関して前記操作量算出手段が算出した操作量の変化に基づいて、各操作部材の操作速度及び加速度の少なくとも一方の値を時間的変化量として算出する時間的変化量算出手段(63)をさらに備えてもよい。これによれば、補整値を利用して正しく算出された操作量を利用して、操作部材が操作された速度、あるいは加速度を正確に算出し、その算出結果をゲームの制御に反映させることができる。   In the operating device according to the aspect described above, the time for calculating at least one of the operation speed and the acceleration of each operation member as the temporal change amount based on the change in the operation amount calculated by the operation amount calculation unit for each operation member. A change amount calculating means (63) may be further provided. According to this, it is possible to accurately calculate the speed or acceleration at which the operation member is operated using the operation amount calculated correctly using the compensation value, and to reflect the calculation result in the control of the game. it can.

前記未操作状態検出手段は、前記ゲームがプレイされている間に各操作部材に関する前記未操作状態の検出を少なくとも一回実行し、前記ゲームのプレイ中にて少なくとも一の操作部材に関して前記未操作検出状態が検出された場合、当該未操作状態が検出された操作部材に関して前記補整値算出手段が前記補整値を算出し、前記操作量算出手段は、前記未操作状態が検出された操作部材に関して前記未操作検出手段により前記未操作状態が新たに検出されるまでは、当該操作部材に関して前記補整値算出手段が算出した最新の補整値に基づいて当該操作部材の前記操作量を算出するものとしてもよい。これによれば、ゲームのプレイ中に補整値を更新することにより、プレイ中における操作部材の位置のずれ、あるいは気温等の外部環境の変化がセンサの計測値に与える影響を補償し、プレイ中に操作感が変化するといった不都合の発生を抑制し又は防止することができる。   The non-operation state detection means executes detection of the non-operation state regarding each operation member at least once while the game is being played, and the non-operation state regarding at least one operation member during the play of the game When a detection state is detected, the correction value calculation unit calculates the correction value for the operation member for which the non-operation state is detected, and the operation amount calculation unit is for the operation member for which the non-operation state is detected. Until the non-operation state is newly detected by the non-operation detection unit, the operation amount of the operation member is calculated based on the latest correction value calculated by the correction value calculation unit with respect to the operation member. Also good. According to this, by updating the compensation value during the game play, the influence of the displacement of the operation member during the play or the change of the external environment such as the temperature on the measured value of the sensor is compensated. It is possible to suppress or prevent the occurrence of inconvenience such as a change in operational feeling.

上記態様の操作装置においては、前記検出対象として磁石(32)が、前記センサとして磁気センサ(31)がそれぞれ設けられてもよい。磁気センサを用いた場合には、操作部材の位置に関する機械的誤差が磁気センサの計測値に影響する。また、磁気センサの検出特性は気温等の外部環境に応じて変化し、磁石の磁場も外部環境に応じて変化するため、そうした変化が磁気センサの計測値に影響する。この形態によれば、機械的誤差や外部環境の変化に拘わりなく基準値を一定に保持しつつ、機械的誤差や外部環境の変化が磁気センサの計測値に与える影響を補償して操作部材の操作量を正しく検出することができる。   In the operating device of the above aspect, the magnet (32) may be provided as the detection target, and the magnetic sensor (31) may be provided as the sensor. When the magnetic sensor is used, a mechanical error related to the position of the operation member affects the measurement value of the magnetic sensor. Further, since the detection characteristics of the magnetic sensor change according to the external environment such as the temperature, and the magnetic field of the magnet also changes according to the external environment, such a change affects the measurement value of the magnetic sensor. According to this aspect, while maintaining the reference value constant regardless of the mechanical error and the change in the external environment, the influence of the mechanical error and the change in the external environment on the measurement value of the magnetic sensor is compensated for. The operation amount can be detected correctly.

本発明の一態様に係るゲーム機は、上述した態様に係る操作装置と、所定のゲーム画面(100)を表示する表示装置(3)と、前記操作装置における前記複数の操作部材のそれぞれに対する操作を前記ゲーム画面を通じて前記ユーザに指示する操作指示手段(52)と、を備えたものである。この形態によれば、上述した態様の操作装置の作用効果を活用して、操作部材の位置に関する機械的誤差、あるいは気温等の外部環境の変化がセンサの計測値に与える影響を補償し、ばらつきのない操作感を有するゲーム機を提供することができる。   A game machine according to an aspect of the present invention includes an operation device according to the above-described aspect, a display device (3) that displays a predetermined game screen (100), and operations for each of the plurality of operation members in the operation device. Operation instruction means (52) for instructing the user through the game screen. According to this aspect, the effect of the operation device of the above-described aspect is utilized to compensate for the influence of the mechanical error related to the position of the operation member or the change in the external environment such as the temperature on the measurement value of the sensor. It is possible to provide a game machine having an operation feeling without any problem.

本発明の一態様に係るゲーム機の操作検出方法は、ゲームのユーザによって操作されるべき複数の操作部材(11)と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象(32)及びセンサ(31)とを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機(1)に適用される操作検出方法であって、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手順(S12)と、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手順(S13)と、各センサが出力する計測値と、前記基準値と、前記補整値算出手順にて算出された補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手順(S22)と、を備えたものである。   A game machine operation detection method according to an aspect of the present invention includes a plurality of operation members (11) to be operated by a user of a game and an operation such that a distance between the operation members changes according to the operation of each operation member. An operation detection method that is applied to a game machine (1) that includes a detection target (32) and a sensor (31) provided for each member, and that outputs a measurement value according to the distance from the sensor. The non-operation state detection procedure (S12) for detecting the non-operation state of each of the plurality of operation members based on the change in the measurement value output by each sensor, and the common setting between the plurality of operation members. A correction value calculation procedure (S13) for calculating, for each sensor, a difference between a reference value related to the measurement value and a measurement value of each sensor when the non-operation state is detected, as a correction value for the measurement value of each sensor; Each An operation for calculating an operation amount from each unoperated state of each of the plurality of operation members based on the measurement value output by the controller, the reference value, and the correction value calculated in the correction value calculation procedure A quantity calculation procedure (S22).

また、本発明の一態様に係るゲーム機用のコンピュータプログラム(PG)は、ゲームのユーザによって操作されるべき複数の操作部材(11)と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象(32)及びセンサ(31)とを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機(1)に設けられたコンピュータ(50)を、各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段(61、S12)、前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段(62、S13)、及び各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段(60、S22)、として機能させるように構成されたものである。   Further, the computer program (PG) for a game machine according to one embodiment of the present invention has a plurality of operation members (11) to be operated by a user of the game, and the mutual distance changes according to the operation of each operation member. Thus, a computer provided in the game machine (1), which includes a detection target (32) and a sensor (31) provided for each operation member, and from which the measurement value according to the distance is output from the sensor. (50) is a non-operation state detection means (61, S12) for detecting the non-operation state of each of the plurality of operation members based on a change in the measurement value output by each sensor, and between the plurality of operation members. The difference between the reference value for the measurement value set in common and the measurement value of each sensor when the unoperated state is detected is calculated for each sensor as a compensation value for the measurement value of each sensor. Based on the measured value output from the adjustment value calculation means (62, S13) and each sensor, the reference value, and the correction value calculated by the correction value calculation means, It is configured to function as an operation amount calculation means (60, S22) for calculating an operation amount from the operation state.

上記態様の操作検出方法、及びコンピュータプログラムによれば、上述した態様の操作装置と同様に、センサ間で基準値を一定に保持しつつ、補整値を利用して操作部材ごとに機械的誤差や外部環境の変化が計測値に与える影響を補償して操作部材の操作量を正しく算出することができる。   According to the operation detection method and the computer program of the above aspect, similarly to the operation device of the aspect described above, while maintaining the reference value constant between the sensors, the mechanical error or It is possible to correctly calculate the operation amount of the operation member by compensating for the influence of the change in the external environment on the measurement value.

1 ゲーム機
3 表示装置
4 入力装置
5 鍵盤部
10 ベース
11 鍵(操作部材)
11a 前端部
11b 後端部
18 押下桿
20 支持機構
21 コイルばね(弾性体)
30 操作検出機構
31 磁気センサ(センサ)
32 磁石(検出対象)
40 クリック感付与機構
42 マイクロスイッチユニット(接触型スイッチユニット)
42a 操作子
50 ゲーム制御装置
51 記憶装置
52 操作指示部(操作指示手段)
53 操作処理部
54 操作評価部
60 操作判定部(操作判定手段)
61 未操作状態検出部(未操作状態検出手段)
62 補整値算出部(補整値算出手段)
63 速度算出部(時間的変化量算出手段)
100 操作指示画面
DC 補整値データ
DG2 操作指示データ
PG ゲームプログラム
DESCRIPTION OF SYMBOLS 1 Game machine 3 Display apparatus 4 Input device 5 Keyboard part 10 Base 11 Key (operation member)
11a front end portion 11b rear end portion 18 pressing rod 20 support mechanism 21 coil spring (elastic body)
30 Operation detection mechanism 31 Magnetic sensor (sensor)
32 Magnet (detection target)
40 Click feeling imparting mechanism 42 Micro switch unit (contact switch unit)
42a Operator 50 Game control device 51 Storage device 52 Operation instruction section (operation instruction means)
53 Operation Processing Unit 54 Operation Evaluation Unit 60 Operation Determination Unit (Operation Determination Unit)
61 Non-operation state detection unit (non-operation state detection means)
62 Compensation value calculation unit (compensation value calculation means)
63 Speed calculation unit (time variation calculation means)
100 operation instruction screen DC compensation value data DG2 operation instruction data PG game program

Claims (9)

ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機の操作装置において、
各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段と、
前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段と、
各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段と、
を備えたゲーム機の操作装置。
A plurality of operation members to be operated by a user of the game, and a detection target and a sensor provided for each operation member so that the distance to each other changes according to the operation of each operation member. In an operating device of a game machine that outputs a measurement value according to the distance,
Non-operation state detection means for detecting the non-operation state of each of the plurality of operation members based on a change in the measurement value output by each sensor;
For each sensor, a difference between a reference value related to the measurement value set in common among the plurality of operation members and a measurement value of each sensor when the non-operation state is detected is used as a compensation value for the measurement value of each sensor. Compensation value calculating means for calculating
An operation amount for calculating an operation amount from each unoperated state of each of the plurality of operation members based on a measurement value output from each sensor, the reference value, and a correction value calculated by the correction value calculation unit. A calculation means;
A game machine operating device.
各操作部材に関して前記操作量算出手段が算出した操作量と所定の閾値との比較に基づいて、各操作部材が操作されたか否かを判別する操作判別手段をさらに備えた請求項1に記載のゲーム機の操作装置。   The operation determination unit according to claim 1, further comprising: an operation determination unit configured to determine whether or not each operation member has been operated based on a comparison between the operation amount calculated by the operation amount calculation unit with respect to each operation member and a predetermined threshold value. Operation device for game machines. 前記閾値が前記複数の操作部材間で共通に設定されている請求項2に記載のゲーム機の操作装置。   The operation device for a game machine according to claim 2, wherein the threshold value is set in common among the plurality of operation members. 各操作部材に関して前記操作量算出手段が算出した操作量の変化に基づいて、各操作部材の操作速度及び加速度の少なくとも一方の値を時間的変化量として算出する時間的変化量算出手段をさらに備えた請求項1〜3のいずれか一項に記載のゲーム機の操作装置。   Temporal change amount calculation means for calculating at least one of the operation speed and acceleration of each operation member as the temporal change amount based on the change in the operation amount calculated by the operation amount calculation means for each operation member. The operating device for a game machine according to any one of claims 1 to 3. 前記未操作状態検出手段は、前記ゲームがプレイされている間に各操作部材に関する前記未操作状態の検出を少なくとも一回実行し、
前記ゲームのプレイ中にて少なくとも一の操作部材に関して前記未操作検出状態が検出された場合、当該未操作状態が検出された操作部材に関して前記補整値算出手段が前記補整値を算出し、
前記操作量算出手段は、前記未操作状態が検出された操作部材に関して前記未操作検出手段により前記未操作状態が新たに検出されるまでは、当該操作部材に関して前記補整値算出手段が算出した最新の補整値に基づいて当該操作部材の前記操作量を算出する、請求項1〜4のいずれか一項に記載のゲーム機の操作装置。
The non-operation state detection means executes detection of the non-operation state regarding each operation member at least once while the game is being played,
When the non-operation detection state is detected for at least one operation member during the game play, the correction value calculation unit calculates the correction value for the operation member for which the non-operation state is detected,
The operation amount calculation means is the latest calculated by the compensation value calculation means for the operation member until the non-operation state is newly detected by the non-operation detection means for the operation member for which the non-operation state is detected. The operation device of the game machine according to any one of claims 1 to 4, wherein the operation amount of the operation member is calculated based on the compensation value.
前記検出対象として磁石が、前記センサとして磁気センサがそれぞれ設けられている請求項1〜5のいずれか一項に記載のゲーム機の操作装置。   The game machine operating device according to any one of claims 1 to 5, wherein a magnet is provided as the detection target, and a magnetic sensor is provided as the sensor. 請求項1〜6のいずれか一項に記載の操作装置と、所定のゲーム画面を表示する表示装置と、前記操作装置における前記複数の操作部材のそれぞれに対する操作を前記ゲーム画面を通じて前記ユーザに指示する操作指示手段と、を備えたゲーム機。   The operation device according to any one of claims 1 to 6, a display device for displaying a predetermined game screen, and an operation for each of the plurality of operation members in the operation device is instructed to the user through the game screen. And an operation instruction means. ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機に適用される操作検出方法であって、
各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手順と、
前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手順と、
各センサが出力する計測値と、前記基準値と、前記補整値算出手順にて算出された補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手順と、
を備えたゲーム機の操作検出方法。
A plurality of operation members to be operated by a user of the game, and a detection target and a sensor provided for each operation member so that the distance to each other changes according to the operation of each operation member. An operation detection method applied to a game machine that outputs a measurement value according to the distance,
An unoperated state detection procedure for detecting an unoperated state of each of the plurality of operation members based on a change in a measurement value output by each sensor;
For each sensor, a difference between a reference value related to the measurement value set in common among the plurality of operation members and a measurement value of each sensor when the non-operation state is detected is used as a compensation value for the measurement value of each sensor. Compensation value calculation procedure for calculating
Based on the measurement value output from each sensor, the reference value, and the compensation value calculated in the compensation value calculation procedure, the operation amount of each of the plurality of operation members from the unoperated state is calculated. The operation amount calculation procedure,
The operation detection method of the game machine provided with.
ゲームのユーザによって操作されるべき複数の操作部材と、各操作部材の操作に応じて互いの距離が変化するようにして操作部材ごとに設けられた検出対象及びセンサとを備え、前記センサからは前記距離に応じた計測値が出力されるゲーム機に設けられたコンピュータを、
各センサが出力する計測値の変化に基づいて、前記複数の操作部材のそれぞれの未操作状態を検出する未操作状態検出手段、
前記複数の操作部材間で共通に設定された前記計測値に関する基準値と前記未操作状態が検出されたときの各センサの計測値との差分を各センサの計測値に対する補整値として前記センサごとに算出する補整値算出手段、及び
各センサが出力する計測値と、前記基準値と、前記補整値算出手段が算出した補整値とに基づいて、前記複数の操作部材のそれぞれの前記未操作状態からの操作量を算出する操作量算出手段、
として機能させるように構成されたゲーム機用のコンピュータプログラム。
A plurality of operation members to be operated by a user of the game, and a detection target and a sensor provided for each operation member so that the distance to each other changes according to the operation of each operation member. A computer provided in a game machine that outputs a measurement value according to the distance,
Non-operation state detection means for detecting the non-operation state of each of the plurality of operation members based on a change in the measurement value output by each sensor;
For each sensor, a difference between a reference value related to the measurement value set in common among the plurality of operation members and a measurement value of each sensor when the non-operation state is detected is used as a compensation value for the measurement value of each sensor. The non-operating state of each of the plurality of operating members is calculated based on the measured value output from each sensor, the reference value, and the corrected value calculated by the corrected value calculating unit. An operation amount calculating means for calculating an operation amount from
A computer program for a game machine configured to function as a computer.
JP2016202839A 2016-10-14 2016-10-14 Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine Active JP6261148B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016202839A JP6261148B1 (en) 2016-10-14 2016-10-14 Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine
PCT/JP2017/036849 WO2018070435A1 (en) 2016-10-14 2017-10-11 Operating device for game machine, game machine having same, method for detecting operation of game machine, and computer program for game machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016202839A JP6261148B1 (en) 2016-10-14 2016-10-14 Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine

Publications (2)

Publication Number Publication Date
JP6261148B1 true JP6261148B1 (en) 2018-01-17
JP2018061776A JP2018061776A (en) 2018-04-19

Family

ID=60989170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016202839A Active JP6261148B1 (en) 2016-10-14 2016-10-14 Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine

Country Status (2)

Country Link
JP (1) JP6261148B1 (en)
WO (1) WO2018070435A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04237658A (en) * 1991-01-16 1992-08-26 Toyota Motor Corp Brake sensor compensating method
JPH09259722A (en) * 1996-03-21 1997-10-03 Denso Corp Switch device
JP2015165345A (en) * 2014-02-28 2015-09-17 株式会社ソニー・コンピュータエンタテインメント Information processing device, information processing system, correction method, control method, correction program, and recording medium
US20150302966A1 (en) * 2014-04-21 2015-10-22 Steelseries Aps Programmable actuation force input for an accessory and methods thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04237658A (en) * 1991-01-16 1992-08-26 Toyota Motor Corp Brake sensor compensating method
JPH09259722A (en) * 1996-03-21 1997-10-03 Denso Corp Switch device
JP2015165345A (en) * 2014-02-28 2015-09-17 株式会社ソニー・コンピュータエンタテインメント Information processing device, information processing system, correction method, control method, correction program, and recording medium
US20150302966A1 (en) * 2014-04-21 2015-10-22 Steelseries Aps Programmable actuation force input for an accessory and methods thereof

Also Published As

Publication number Publication date
WO2018070435A1 (en) 2018-04-19
JP2018061776A (en) 2018-04-19

Similar Documents

Publication Publication Date Title
US8246461B2 (en) Methods and apparatus for stringed controllers and/or instruments
JP6643924B2 (en) Electronic equipment, stroke detector, program
EP2618327B1 (en) Damper drive device for musical instrument, and musical instrument
EP2618328B1 (en) Musical instrument equipped with a pedal, and method therefor
JP2021533490A (en) Computer input device
CN103514870B (en) Electric keyboard instrument and method
WO2018079668A1 (en) Keyboard device
JP2018180527A (en) Keyboard device
US10580249B2 (en) Gaming apparatus and method of controlling image display of gaming apparatus
US10714067B1 (en) Controller for producing control signals
JP6261148B1 (en) Game machine operation device, game machine including the same, game machine operation detection method, and computer program for game machine
US10311846B2 (en) Keyboard musical instrument and method of acquiring correction information in keyboard musical instrument
JP6327537B2 (en) Game machine operating device and game machine equipped with the same
US20120172121A1 (en) Music Game System Capable Of Text Output And Computer-Readable Storage Medium Storing Computer Program Of Same
JP5707693B2 (en) Electronic keyboard instrument
JP6123059B1 (en) Game machine and computer program thereof
JP6145783B1 (en) Game machine and computer program thereof
JP6492373B2 (en) GAME SYSTEM AND COMPUTER PROGRAM THEREOF
EP3745391A1 (en) A controller for producing control signals
JP6075904B1 (en) Game machine and computer program thereof
JP6123058B1 (en) game machine
WO2014007205A1 (en) Game system, control method used therein, and computer program
CN113053341A (en) Musical sound generation device and musical sound generation method
CN113053340A (en) Electronic percussion instrument and musical tone generating method
JP2014193396A (en) Game system, and control method used in the game system

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20171106

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171211

R150 Certificate of patent or registration of utility model

Ref document number: 6261148

Country of ref document: JP

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250