Code Monkey home page Code Monkey logo

Comments (7)

iandol avatar iandol commented on August 17, 2024

Oh, just saw the Titta paper is published, congrats! 👍

from titta.

dcnieho avatar dcnieho commented on August 17, 2024

from titta.

iandol avatar iandol commented on August 17, 2024

Yeah, I also normally have a try catch, but in a small test setup the calibration ended up outside my try which is how i found this.

I normally add ListenChar just before keyboard is polled, and then reset just after, so e.g. https://github.com/dcnieho/Titta/blob/master/demos/readmeMinimal.m#L54

ListenChar(-1);
EThndl.calibrate(wpnt);
ListenChar(0);

I didn't know Windows doesn't leak keypresses like Linux and macOS; interesting!

Yeah, they also told me a new SDK should fix this. For a bug which compromises core functionality, I am not impressed by how slowly they responded to this.

from titta.

iandol avatar iandol commented on August 17, 2024

I just tested KbCheck() on Windows 10 + MATLAB 2019b and I see the same behaviour, in that keys you press leak into e.g. the MATLAB editor if it has focus. Test code:

KbName('UnifyKeyNames');
loop = 0;
while true
	[keyIsDown, ~, keyCode] = KbCheck(-1);
	if keyIsDown == 1
		rchar = KbName(keyCode);
		switch lower(rchar)
			case {'q','0'}
				break;
			case {'1','1!','kp_end'}
				loop = loop + 1;
				fprintf('Hello %i!\n',loop)
		end
	end
	WaitSecs(0.01);
end

If I run that from the editor, everytime I press 1 I get the print statement but also a 1 leaking into the editor. Maybe you don't use KbCheck or set up in a different way?

from titta.

dcnieho avatar dcnieho commented on August 17, 2024

from titta.

iandol avatar iandol commented on August 17, 2024

Actually we are having serious problems getting past the calibration stage, we have yet to even collect data, I'll contact you offline for some advice...

from titta.

dcnieho avatar dcnieho commented on August 17, 2024

from titta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.