libretro / desmume

DeSmuME is a Nintendo DS emulator
http://desmume.org
GNU General Public License v2.0
35 stars 33 forks source link

Button Mapping of Swipes and Screen Buttons #33

Open Papermanzero opened 6 years ago

Papermanzero commented 6 years ago

Many DS games use exclusiv touchscreen buttons or swipes to perform an action. A mapping of those inputs to a button increases therefore the playability.

An example for such an emulation could be the nox player for android. https://www.bignox.com/blog/how-to-use-keyboard-mapping-to-play-android-games-on-pc/

Papermanzero commented 4 years ago

I have a suggestion for the implementation. Based on the Mupen64plus-next coding, how about a definition of virtual buttons in the core option.

Means, e.g. 4 screen buttons can be configured in the core options. Each of the four buttons contain a x and y value based on the pixels of the bottom screen on the DS. Those 4 buttons can then be mapped in the controls options.

So users can define 4 virtual screen buttons which can be mapped on the controller.

Papermanzero commented 4 years ago

Citra implemeted the feature

https://github.com/citra-emu/citra/commit/81a1e5680f93189d6029f579b4b261b2aa552818