Project

General

Profile

Actions

Emulator Issues #1192

closed

njoy 0.3 will not accept input from a secondary controller until the OK button is pressed

Added by danthetaliban almost 15 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

You will require multiple controllers to reproduce this

What steps will reproduce the problem?

  1. Open up the config. For each Controller tab, set the "Controller"
    dropdown to the first controller in the list, and hit OK.
  2. Open up the config again, and configure your controller tabs. You'll
    notice that you'll be able to use your first controller to configure all
    Controller tabs, which is expected.
  3. Now, on any tab, change your "Controller" dropdown to your second
    device, and try using input on this second device to configure your
    controllers. It will not work
  4. Without altering this dropdown (leave it on the 2nd controller), press
    OK and return to the tab where you set it to controller #2. You will
    notice it now accepts input from your second controller.

What is the expected output? What do you see instead?
When altering the Controller from the dropdown, the accepted input should
change immediately, not after hitting OK.

What version of the product are you using? On what operating system?
Windows 7 64-bit, R3883

Please provide any additional information below.
When i discovered this, i had 4 controllers attached, but it should work
with any number of controllers greater than 1.


Related issues 1 (0 open1 closed)

Is duplicate of Emulator - Emulator Issues #1828: Two of the same controllers seem to only use oneDuplicate

Actions
Actions #1

Updated by danthetaliban almost 15 years ago

ConfigJoypad.cpp, line 280:
int PadID = PadMapping[Controller].ID;

i think this should be changed to:

int PadID = m_Joyname[Controller]->GetSelection();

This way it reads from the current Dropdown value rather than the cache value.

Actions #2

Updated by Anonymous almost 15 years ago

  • Status changed from New to Work started

have you tested that change? does it fix the problem/introduce any bad effects? I don't
know jack about njoy, so what you say goes :D

Actions #3

Updated by lpfaint99 almost 15 years ago

if njoy will detect my x360pad, I'll test this

Actions #4

Updated by sskkiipp almost 15 years ago

Heres the patch to ConfigJoypad.cpp :

Actions #5

Updated by daco65 over 14 years ago

still works with my controller, so the question is if it fixes what danthetaliban had
(i dont have a gameport on this pc so i can't plugin a second controller)

Actions #6

Updated by ayuanx over 14 years ago

  • Status changed from Work started to Duplicate
Actions

Also available in: Atom PDF