# Can we take response from two or more than two mouse in psychtoolbox?

**URL:** <https://psychtoolbox.discourse.group/t/can-we-take-response-from-two-or-more-than-two-mouse-in-psychtoolbox/4405>\
**Category:** Programming Help\
**Tags:** windows, experiment-design\
**Created:** [May 5, 2022, 12:41pm UTC](https://psychtoolbox.discourse.group/t/can-we-take-response-from-two-or-more-than-two-mouse-in-psychtoolbox/4405 "2022-05-05T12:41:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit27](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Ankit27](https://psychtoolbox.discourse.group/u/Ankit27)\
**Post date:** [May 5, 2022, 12:41pm UTC](https://psychtoolbox.discourse.group/t/can-we-take-response-from-two-or-more-than-two-mouse-in-psychtoolbox/4405/1 "2022-05-05T12:41:51Z")

</div>

I have to use two mouse to collect responses for my experiment. Can I do that in psychtoolbox ? Is there any predefined function for that ? Please help me out with this . Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [May 5, 2022, 3:29pm UTC](https://psychtoolbox.discourse.group/t/can-we-take-response-from-two-or-more-than-two-mouse-in-psychtoolbox/4405/2 "2022-05-05T15:29:20Z")

</div>

On MS-Windows, all mice will be treated as one “unified” mouse, you can’t address them individually atm. On Linux, yes (help `GetMouse`, `GetMouseIndices`, help for keyboard queues if only button responses, MouseMotionRecordingDemo etc.). macOS is inbetween: mouse buttons can be treated individually, mouse motion/position not.

As usual, for best results, Linux is recommended.  
-mario

---

<div class="post-metadata">

**Author:** ![Ankit27](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Ankit27](https://psychtoolbox.discourse.group/u/Ankit27)\
**Post date:** [May 6, 2022, 7:34am UTC](https://psychtoolbox.discourse.group/t/can-we-take-response-from-two-or-more-than-two-mouse-in-psychtoolbox/4405/3 "2022-05-06T07:34:24Z")

</div>

Thanks a lot Mario 🙂
