psychtoolbox push buttons

Dear sir/madam,

My name is Anton Leontyev, I am an international psychology graduate student studying in USA. During my studies, I have found your software (Psychtoolbox). It proved to be very helpful. However, I have recently encountered a difficulty with it. If you don't mind, could you help me with that?
The problem I've faced is drawing push buttons on screen (activated by clicks). I couldn't find anything like this in function reference, as well as in the collection of demo-experiments. If you will be able to give me any advice on that, I will be very thankful.
Thank you for your time,

Anton.
--
(337) 534-18-00
Hi Anton,

You'll have to draw you own button (just draw a square with some text on it), and then wait for mouse clicks. If a click occurs, check if it was on your button (InRect() can help with that).

Cheers,
Dee

On Thu, Jun 9, 2016 at 4:13 PM, Anthony Leontyev a.g.leontiev@... [PSYCHTOOLBOX] <PSYCHTOOLBOX@yahoogroups.com> wrote:


Dear sir/madam,

My name is Anton Leontyev, I am an international psychology graduate student studying in USA. During my studies, I have found your software (Psychtoolbox). It proved to be very helpful. However, I have recently encountered a difficulty with it. If you don't mind, could you help me with that?
The problem I've faced is drawing push buttons on screen (activated by clicks). I couldn't find anything like this in function reference, as well as in the collection of demo-experiments. If you will be able to give me any advice on that, I will be very thankful.
Thank you for your time,

Anton.
--
(337) 534-18-00