Commit cf19790
authored
ogc: always let application decide on mouse visibility (#59)
Our heuristics break the "Abbaye des Morts" game, which does not need a
mouse cursor and just calls `SDL_ShowCursor(SDL_DISABLE)` at startup.
Yet, with the current version of SDL, if the wiimote is pointed at the
screen we are still showing a cursor, overriding the application's
explicit decision. And the mouse cursor is useless, since the
application is not reacting to a mouse.
The code we are removing was mainly added with the intent of _hiding_
the mouse cursor when the wiimote was not pointed at the screen, and we
could indeed update it and keep it working just as an additional check
on whether the cursor should be shown or not, but we don't really have a
concrete use-case here.
Let's just remove it completely for now, and bring it back (still
respecting an explicit SDL_DISABLE setting, though!) if/when we see a
reason to.1 parent afa67bc commit cf19790
1 file changed
+0
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
66 | 63 | | |
67 | 64 | | |
68 | 65 | | |
69 | | - | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
| |||
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 80 | | |
97 | 81 | | |
98 | 82 | | |
| |||
0 commit comments