Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 01-06-2019, 07:44 AM   #1
m3roadworx
Human being with feelings
 
m3roadworx's Avatar
 
Join Date: Mar 2012
Location: Helsinki
Posts: 18
Default Xbox POV not available in joystick api

I have make a script for processing XBox controller messages through the joystick API and uploaded it to the JS stash, https://stash.reaper.fm/v/35156/xbox_one.txt. However, the POV reading, which is used to indicate one of four directions, is not accessible from the script file even though the POV value is correctly shown in the Edit Joystick Definition box.
m3roadworx is offline   Reply With Quote
Old 10-08-2019, 12:51 PM   #2
shaun
Human being with feelings
 
Join Date: Feb 2010
Posts: 9
Default

Bringing this up again - I'm seeing the same thing.

Anybody want to fix this or give us an update? Thanks!!
shaun is offline   Reply With Quote
Old 10-08-2019, 09:11 PM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,740
Default

Hmm that script does not try to call pov(), can you give me a script that does not work as expected? What value does it return? What does the numpov variable return?
Justin is online now   Reply With Quote
Old 10-13-2019, 08:06 AM   #4
m3roadworx
Human being with feelings
 
m3roadworx's Avatar
 
Join Date: Mar 2012
Location: Helsinki
Posts: 18
Default POV works

I have to eat my words. The POV does work. The value of numpov is 1 and the variable to access is pov(0), not povs as displayed in the configuration dialog.
m3roadworx is offline   Reply With Quote
Old 10-28-2019, 02:12 PM   #5
m3roadworx
Human being with feelings
 
m3roadworx's Avatar
 
Join Date: Mar 2012
Location: Helsinki
Posts: 18
Default Major concurrency problem

It is impossible to use the POV because when you press a key, the values returned contain repeated and spurious values. With the attached script it doesn't matter which of the four directions you press, you will always get several values < 1 (the north direction). In the script, the hasrun conditional is removed but it makes no difference whether the conditional is used or not, and whether the variable updates are inside or outside it. Furthermore, the systime doesn't seem to work, so you cannot filter out spurious events by ignoring new events for, say, one second.
Attached Files
File Type: txt xbox_one_pov.txt (608 Bytes, 136 views)
m3roadworx is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.