v66: PSM - touch down

Monkey Forums/Monkey Bug Reports/v66: PSM - touch down

dragon(Posted 2012) [#1]
Small bug in PSM (tested in emulator)

each time you click on window, background should change to red
in PSM, if you click fast, only every second click is accepted.
But if you move mouse and click, every click is accepted.

HTML5,Flash,XNA,GLFW do not have this issue

On PSM, i can not get my game working correct, because i need fast clicks as possible


Strict
Import mojo

Class Program Extends App
	Global buttondown:Bool
	
	Method OnCreate:Int ()
		SetUpdateRate(60)
		Return 0
	End

	Method OnUpdate:Int ()
		Local t:Int
		buttondown = False

		For t = 0 To 31
			If TouchDown(t) = True Then	buttondown = True; Exit
		End

		Return 0
	End

	Method OnRender:Int ()
		If buttondown = True Then Cls(255,0,0) Else Cls(0,0,0)
		Return 0
	End
End

Function Main:Int ()
	New Program()
	Return 0
End



dragon(Posted 2013) [#2]
*push*

this issue was not fixed in v69


marksibly(Posted 2013) [#3]
PSM Target is no longer supported.

I will shortly be making the PSM mojo code open source so someone else may be able to help out.


Goodlookinguy(Posted 2013) [#4]
@marksibly

That's too bad since this is the target I'm actively aiming towards. I know it's not really your fault that Sony has the market so closed off though, so I understand.

@dragon

I don't have a fix yet, but I was looking through the native code. I think what's happening is when you click fast, a touch up check is taking priority over touch down and is clearing the click from ever happening. This is semi-speculation, because I've only been looking at it for a few minutes.


dragon(Posted 2013) [#5]
i bought Monkey specially because it support PSM...
hmmm...