Dawoodoz / DFPSR

Fast realtime softare rendering library for C++14 using SSE/AVX/NEON. 2D, 3D and isometric rendering with minimal system dependencies.
https://dawoodoz.com/dfpsr.html
78 stars 6 forks source link

Create an integration test application #100

Open Dawoodoz opened 4 months ago

Dawoodoz commented 4 months ago

To simplify porting the media layer in the future, one can have an application that goes through different tests and sais what is good enough in a summary.

Essential integration:

Features that might not be possible to integrate in the future:

Dawoodoz commented 3 months ago

Tried the new integration test on Windows 11 and it fails with strange bugs. AltGr works, but pressing the Alt key send a mouse event. Pressing F10 also sends a mouse event instead. Scrolling sends garbage data as the cursor location, but that can at least be filtered out by remembering the relative cursor location from the mouse move or click events. There is probably some strange setting that blocks access to Alt and F10 keys.

Dawoodoz commented 3 months ago

Two physical keyboards and a virtual keyboard had the same problem with Alt and F10 keys on Windows 11, but F10 works in the file explorer.

Dawoodoz commented 3 months ago

After taking Alt and F10 as system keys, the only remaining problem is that AltGr wants to send Ctrl events on MS-Windows. This might be possible to filter away if inspecting all the additional information bits.

Dawoodoz commented 3 months ago

Decided to just let Windows send duplicate events for now, because filtering out events would risk making things even more strange.