Closed erfg12 closed 5 years ago
Since you used my controller code, you should know that SPACEBAR is used for attacking, talking to towners, etc. which is reflecting in the rest of the code. Please change this:
https://github.com/lantus/devilution-nx/blob/master/SourceX/miniwin/misc_msg.cpp#L191
doAttack = 1;
to press spacebar PressKey(VK_SPACE);
However, if the flag inmainmenu is true, this button should be ENTER PressKey(VK_RETURN)
// similar to X button on PS1 ccontroller. Talk to towners, click on inv items, attack.
The Y button on switch to pickup items should emulate an ENTER key press:
https://github.com/lantus/devilution-nx/blob/master/SourceX/miniwin/misc_msg.cpp#L197
Remove doUse = 1;
.
Required more code than I thought. Fixed in PR https://github.com/lantus/devilution-nx/pull/10
Any kind of chest are completely ignored when an enemy is nearby. There needs to be a check that if we press the Y button it opens the nearest chest regardless if an enemy is nearby.