Skip to content

Commit f74a191

Browse files
committed
make sure that HideCursor actually you know hides the cursor on all OS
1 parent 0b072b1 commit f74a191

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/initPTB.m

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@
4949
initKeyboard;
5050
initDebug(cfg);
5151

52-
% Mouse
53-
if cfg.hideCursor
54-
% TODO does not work on Linux: WTF???
55-
HideCursor;
56-
end
57-
5852
%% Audio
5953
cfg = initAudio(cfg);
6054

@@ -107,6 +101,11 @@
107101
WaitSecs(0.1);
108102
GetSecs;
109103

104+
% Mouse
105+
if cfg.hideCursor
106+
HideCursor(cfg.screen.win));
107+
end
108+
110109
end
111110

112111
function cfg = getOsInfo(cfg)

0 commit comments

Comments
 (0)