lantus / devilution-nx

Diablo for the Nintendo Switch
The Unlicense
859 stars 61 forks source link

Fix button presses causing crash while intro plays #20

Closed rsn8887 closed 5 years ago

rsn8887 commented 5 years ago

Closes #18

Now, left mouse click and plus button skip cutscenes. All other inputs are disabled during cutscenes.

This was related to the older bug of "I have no spell ready" sound playing and other game inputs triggering when pushing buttons while the intro was playing.

rsn8887 commented 5 years ago

Ready to merge @lantus :)

AJenbo commented 5 years ago

With out having dived to deep in to the code I would say this should probably have been done by having MovieWndProc respond to gamepad events. The way it's done in this PR makes the event mapper very aware of what is going one in the game, rather then just simply mapping events. https://github.com/lantus/devilution-nx/blob/dbcbeb0edd7fd151b11011a78cdf7237e07e68a7/Source/movie.cpp#L56