Opened 3 weeks ago

Closed 3 weeks ago

#17400 closed defect (fixed)

[Keymapper] [Engine: DGDS] Left and right mouse buttons cannot be mapped and have no default mapping in some games

Reported by: rsn8887 Owned by: rsn8887
Priority: normal Component: Engine: DGDS
Version: Keywords: key mapper
Cc: Game: Rise of the Dragon

Description (last modified by rsn8887)

I cannot map the left mouse button in DGDS games such as Rise of the Dragon. Tested on Switch.

Also, there's no default controller mapping for this game that maps to to left mouse click. So it seems to be impossible to click in this game unless you connect a mouse.

I don't think DGDS is the only engine with this issues. I think to fix this in general, ALL engines should always expose the basic input actions "left mouse click" and "right mouse click" in the keymapper dialog.

This is important, because there are many platforms without a mouse that rely solely on game controller input.

Reported by user auroranoir in this forum post:
​https://forums.scummvm.org/viewtopic.php?p=102069#p102069

Change History (3)

comment:1 by rsn8887, 3 weeks ago

Description: modified (diff)

comment:2 by rsn8887, 3 weeks ago

Comment from Discord by ccawley2011:

The keymap for the left mouse button needs to be added to the metaengine for the individual engines - it should look something like this:
`

act = new Action(kStandardActionLeftClick, _("Left click"));
act->setLeftClickEvent();
act->addDefaultInputMapping("MOUSE_LEFT");
act->addDefaultInputMapping("JOY_A");
engineKeyMap->addAction(act);

`

comment:3 by rsn8887, 3 weeks ago

Owner: changed from mduggan to rsn8887
Resolution: → fixed
Status: new → closed
Note: See TracTickets for help on using tickets.