[ オリジナルレポート ]

BugID: #04614

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
DIP/入力認証済み未処理2012-01-18 09:032012-01-19 08:31
 
テスターwormzer担当者 ソース
バージョン0.144u6発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット
セット詳細
 
概 要joystick_mapの設定を狭めると、正しく入力できなくなる。
詳 細To tighten up the feel of my ultrastik360, I attempted to use a more specific joystick_map. I tried this for a left-right map

-joystick_map 45.

This should set up a map with a large dead-zone and require moving the stick all the way to the extreme to go left or right (which is what I was aiming for). Trouble was, as soon as I did this my stick did not work (at least in the programming screen).

I tracked down the problem in the source myself and found that removing these lines from src/emu/input.c fixed the problem:

1305 // skip if there is not enough axis movement
1306 if (!code_check_axis(*item, code))
1307 continue;

I can't say I understand this code_check_axis call, but it seems to prevent the stick from being sensed as a switch. Removing these lines solved my problem, but I'm not sure of the real solution
再現手順* run mame -joymap 45. <rom>
* go into the controller programming and choose P1 LEFT
* try to use joystick to configure
* move the joystick and nothing happens (expect it to come up with "Joy 1 Left")
* have to hit ESC to quit
追加情報 
 
添付ファイル