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
Comments
Hi Erwin,
Yes, if you use the legacy (pygame) back-end you should be able to use all PyGame functions. For example, as demonstrated here: http://osdoc.cogsci.nl/back-ends/legacy
I have never used a joystick/ gamepad myself, but they are supported by PyGame. The documentation page is here: http://www.pygame.org/docs/ref/joystick.html
You would have to write some Python inline code to use a joystick, though. But probably nothing overwhelmingly difficult.
Please let me know how it goes! It would be useful to add some documentation about using joysticks/ gamepads.
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi again
I have being trying to the inline script to recognize a gamepad. I have this code now:
In my experiment, I have audio feedback after every trial (a bell for correct answer, or a buzzer for a wrong answer). However, the script is not waiting for a response to play the feedback.
Any suggestions?
Hi Erwin,
I don't see anything obviously wrong with the code. What exactly happens?
What I would probably do is create a dummy experiment, where you continuously poll the joystick (for say 10 seconds) and output the value of event.button, either to a canvas or to the debug window. That way you can see what type of output you get depending on what buttons you press.
Quite possibly, the joystick always returns some default value, which changes when you press a button. If that's the case you would have to wait until event.button does not have the default value, rather than just waiting for the first JOYBUTTONDOWN event. But I'm just guessing...
Hope this helps and good luck!
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Oh, no. The indentation got lost in the previous comment.
Hi
I'm trying to build a plug-in for the gamepad. How can I make generic_reponse read the the input from the gamepad?
Thanks
Erwin
The most important function of generic_response, or at any rate the most useful for you, is that it does some bookkeeping: It calculates the response time based on the response interval, checks whether the response was correct if 'correct_response' has been set, and maintains the response averages for feedback purposes.
This conveys the general idea:
You may also want to take a look at generic_response.py and srbox.py:
PS. You can use the <PRE> </PRE> tags to preserve indentation etc. on the forum.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Erwin,
I don't know if you're still working on this, but I saw in a post on the PsychoPy developer mailing list that support for joysticks will be introduces as of 1.73.00. Perhaps that's worth checking out?
Regards,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastian
Thanks for the tip on Psychopy. I tried several times before last year to install Psychopy on my laptop, but not even the demos would'nt run. I guess it's a compatibility problem with the video controller.
But, yes, I'm still working on the gamepad. After reading the Psychopy documentation, I can see that I was pretty much doing the same on Open Sesame. I did manage to have Open Sesame recognizing the gamepad input, but I have still some problems with the timing. In particular, the way I wrote the experiment script makes Open Sesame wait till the end of the audio file to collect the button press. I tried setting the sampler to Duration =0, but it didn't work.
I'll start from scratch with a new experiment script using the keyboard as input devise to check that my gamepad plugin is not creating the problem.
I'll let you know how it goes.
Hi Erwin/Sebastiaan,
did you get any further with a gamepad plugin? This sounds like exactly what I'm after (as part of an eyetracking setup).
Best, MC
Hi Martin,
I don't know what the status is on this (Erwin?), but you might want to check out this discussion: http://forum.cogsci.nl/index.php?p=/discussion/comment/484
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastiaan/Martinc
Yes, I wrote the joystick/gamepad plugin for my experiment. I'm now analysing the reponse times I collected using this plugin and a Genius USB gamepad, and all seems pretty good!
The plugin only collects data from button presses. However, I think it wouldn't be too hard to add the hats or direction buttons to the pluggin, if your experiment calls for that.
Sebastiaan, I have sent the plugin to your email account s.mathot@cogsci.nl. Let me know
how it goes.
Erwin
Great! I don't have a joystick myself to really test it, but as far I can tell it should work fine (at least it shows up in OpenSesame for me, and you used it in an actual experiment, right?).
I uploaded the plug-in here, I'm sure it will be useful to some people: http://files.cogsci.nl/misc/joystick_sesame.zip
Are you planning to develop the plug-in any further? No pressure, but if so, it might be an idea to host it on GitHub. Or I could give you an ftp account for cogsci.nl, so you can upload updates yourself. In your email, you mentioned that the icons are a bit out of style with respect to the rest of the GUI. These are the icons that I use: http://tiheum.deviantart.com/art/Faenza-Icons-173323228
Thanks for sharing your efforts!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi
Yes, I did use the plugin in an actual experiment. It was a spoken lexical decision task.
I'm not working on the pluging right now, but I've thought of integrating the hats to the plugin. However, I'm not sure about how to get the logger to register the contious flow of data during a trial.
Hi all!
I tried the plugin and it didn't quite work with my Logitech Attack 3 (that is: the response isn't logged). So I did some coding myself (allowing for input from axes, hats and trackballs as well), but than a bit different. I think it would be a nice addition if we were to add the joystick-functionality to OpenSesame itself (like the mouse and keyboard options). In that way, one would be able to use simpler (compared to PyGame) functions, very similar to these: http://osdoc.cogsci.nl/python-inline-code/keyboard-functions . This would solve the problem of hat/ball/axis-input, since OpenSesame-users would be able to use functionality for these within while-loops in inline-scripts (to move stimuli about or whatever one would want to do with a joystick).
Regrettably, I ran into some trouble (mostly with the GUI-stuff) and the code is with Sebastiaan now :P But how do you like the idea?
Hi Edwin and Erwin,
Good to see that work is being done on the Joystick!
It would be very nice to have simple Joystick functionality in OpenSesame by default. I'm not sure it should be implemented as a back-end though, in the same way as the keyboard and mouse. The reason is that I'd like to keep the OpenSesame core as simple as possible, and I see the joystick more as an non-standard external device like e.g. the srbox and the eyelink.
From a development perspective this only makes things easier, because the joystick doesn't need to be added as a back-end to make it available in inline_scripts (because I agree with Edwin that this would be very convenient). The way I've approached this type of situation with the Eyelink and SR Box is that I first created a class that interfaces with the Joystick (in this case using PyGame I suppose).
So I would create a file called libjoystick.py that contains a libjoystick class, more or less like this https://github.com/smathot/OpenSesame/blob/master/plugins/srbox/libsrbox.py.
Next I would create a joystick plug-in that checks whether an instance of libjoystick already exists, and if not, adds it as a property to the experiment. The code to do this is a bit messy, because it needs to dynamically import the libjoystick module from a file in the plug-in directory, but it goes like this:
So the joystick plug-in doesn't interface with the joystick directly, but uses the libjoystick module.
(Also see https://github.com/smathot/OpenSesame/blob/master/plugins/srbox/srbox.py#L106.)
After the joystick plug-in has initialised a joystick object, the user will be able to interface with the joystick in an inline_script as well, like so:
Does this make sense? So this way a plug-in can offer functionality in the GUI as well as in inline_scripts. I'm not saying that there are no other good ways to add Joystick functionality to OpenSesame, but this would at least be one of them.
Perhaps I should create a decent example plug-in, that would make things easier for other developers (because I really want people to start making plug-ins!).
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Btw, Edwin, so openexp._joystick.legacy.py is perfect (or at least it appears to be, I can't test it because I have no joystick), but I would add it as a libjoystick module to the plug-in in the way described above. Functionality-wise that doesn't affect the module itself.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for the feedback! I do agree with you on the point of a joystick being a non-standard input device and I can relate to your point of trying to keep OpenSesame's core as simple as possible.
So, what basically needs to be done is:
And then possibly add some axis/hats/balls-functionality to the plugin.
That's all?
P.S. Yes please! to the example plugin.
Yep, that's about it. Until the bug reports start coming in, of course
Check out SigmundAI.eu for our OpenSesame AI assistant!
And, of course, they do:
It all goes to bits on this line:
Reporting the following:
I'm kind of lost on what exactly your code does and where to put it (it's now in def prepare, I figured that would make the most sense), so tips are appreciated
Right, the script now assumes that the class inside libjoystick.py is called libjoystick. It's probably still called legacy, right? So just make sure that the class name (_joystick.[class name]) matches the actual class.
And yep, I would add it to the prepare function.
Check out SigmundAI.eu for our OpenSesame AI assistant!
Oh, silly me, I renamed it 'joystick' instead of 'libjoystick'... Now it works like a charm! I'll set up a new githubthingy and try to get it to you.
Don't have the time to set up github again now, so it's in your mailbox! I redid the whole joystick-plugin (the joystick.py part, that is), to improve it's similarity to the rest of OpenSesame (it resembles the srbox-plugin to a great extent).
Thanks for the help!
EDIT: fixed: sent you a pull request
Thanks!, I'll merge it into the playground branch, which contains the experimental stuff, and then we can go from there (but see my comments on the pull request).
Erwin, do you also have a GitHub account by any chance?
Check out SigmundAI.eu for our OpenSesame AI assistant!
For future reference: the plugin can be found here: https://github.com/smathot/OpenSesame/tree/playground/plugins/joystick
An example experiment here: https://github.com/smathot/OpenSesame/blob/playground/examples/joystick_demonstration.opensesame