Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] psychopy backend using pyglet does not support my_mouse.set_pos

edited September 2015 in OpenSesame

Hi,
I tried examples/teaching about opensesame with touch screen, so far so good. However, I tried to setup a new mouse/touch position with
my_mouse.set_pos(pos=(0,0)) # for example

it comes out the error message...
" File "dist\openexp_mouse\psycho.py", line 56, in set_pos osexception:
Method set_pos not supported in pyglet environment (default for psycho back-end) "

my_mouse.get_pos() works well but not for set_pos method.

Any suggestion will be highly appreciated....

Blessings

Comments

  • edited 8:23PM

    Hi,

    Are you running your experiment on a tablet or a desktop with touch screen? I don't have experience with touch screen computers, but I'm wondering if there is a cursor at all? I would think that any touch screen interface works with touches (equal to mouseclicks) as the only input - meaning that there is nothing for the set_pos command to set. If there is a cursor however, we may need a better technician to enlighten us!

    Cheers,

    Josh

  • edited 8:23PM

    Did someone ask for a technician? I wrote that function ;)

    This is not a problem of your touch screen; it doesn't work with a mouse either. The issue is not with OpenSesame, but with a library that is underlying PsychoPy. Unfortunately, it is exactly as the error message says: pyglet (used by PsychoPy to do stuff with the screen and peripherals) does not allow for setting the mouse position.

    The easy way of getting around the problem, is to switch to a different back-end (legacy and expyriment should work fine).

    The only alternative is to hack your way into pyglet, and finally fix that mouse position functionality. It hasn't worked (i.e. hasn't been there) for years!

  • edited 8:23PM

    Hah alright. Here, have a digital rose, (no romance intended)

  • edited 8:23PM

    Thanks for both with prompt replies......Let me tell you more details and see what you can help....
    First, I used a computer with a touch screen which max resolution is 1024x768. I followed Sebastiaan's teaching example (
    http://www.cogsci.nl/forum/index.php?p=/discussion/21/solved-task-with-touchscreen/p1 ) and met the problem I posted above. What I really want was to detect mouse cursor position (using command: my_mouse.get_pos()) and setup mouse position (using my_mouse.set_pos(pos=(0,0)).

    Then I changed to different back-end. Using Android back-end works perfectly only if I have a higher end touch screen (like in laptop ones supporting at least 1200x960). However, that excellent laptop is not lab's property. I just borrowed for tests only.....

    Next, I changed to legacy and xperyment back-ends. Both had the same problems that the cursor's positions did not match my finger tapping on the screen and the cursor's movement did not follow my finger moving on the screen, looking like hazard and awkward. But the setup cursor position worked.

    So, in a word, every back-end (except Android) has a problem although different when I tried a touch screen. And neither one can be solved by myself....Any assistance and suggestion will be highly appreciated.

    Thanks for your time reading this and Blessings,

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games