Replacing the mouse cursor by a picture

Dear all,

I am designing an experiment with Psychtoolbox and I would like to change the mouse cursor into a picture. I've seen many solutions for changing it into a crosshair, or a hand, or other shapes that matlab allows, but I don't manage to change the cursor by a file that I would specifiy myself (PNG file for instance).

Any ideas ? or maybe this isn't possible (yet) ...

Thank you very much in advance,

Emma


redrawing the same texture over and over is pretty fast...
Thank you for your answer.

Actually, I didn't give details but the idea is for the subjects to move a kind of avatar toward a chosen location on the screen with the mouse, so I thought the easier way to do it would be to replace the pointer with the avatar to accompany the trajectory ... but subjects have a limited period of time to do it (around 1000ms) and I am afraid drawing the picture on each frame is going to be a bit heavy (my script isn't light and I am already recording and saving the mouse coordinates every 10ms at the same time, which is a bit heavy too ...) ?

Emma
Drawing a single texture for a cursor image should only take microseconds. If you are concerned with the needed Screen('Flip') command throttling your mouse sampling rate to less than 10 msecs you can also use Screen('AsyncFlipBegin') - see AsyncFlipTest.m or MultiWindowLockstepTest.m for usage examples.
-mario
Thank you !
I am going to look at these commands because indeed, I want the cursor-picture to appear while my stimulus is flipped in the background (two JPEG images appearing on each half of the screen), so I will need to flip only the cursor-picture without flipping my whole stimulus every 10ms because it would disrupt the continuous recording of mouse coordinates ...


On Wednesday, October 1, 2014 7:06 PM, "mario.kleiner@... [PSYCHTOOLBOX]" <PSYCHTOOLBOX@yahoogroups.com> wrote:


 
Drawing a single texture for a cursor image should only take microseconds. If you are concerned with the needed Screen('Flip') command throttling your mouse sampling rate to less than 10 msecs you can also use Screen('AsyncFlipBegin') - see AsyncFlipTest.m or MultiWindowLockstepTest.m for usage examples.
-mario