OnMouseMove not working with a Hollywood Display in RapaGUI 2.0 (Android)

Report any Hollywood bugs here
Post Reply
PEB
Posts: 210
Joined: Sun Feb 21, 2010 1:28 am

OnMouseMove not working with a Hollywood Display in RapaGUI 2.0 (Android)

Post by PEB » Sat Feb 16, 2019 3:15 am

If you run the following code on the new Android player, two displays will open; but it will only work on the Hollywood display (not when the RapaGUI display is active):

Code: Select all

@REQUIRE "RapaGUI"
@REQUIRE "polybios"
@DISPLAY {Width = 640, Height = 480, Color = #BLACK, Layers=True}

TextOut(10, 10, "Mouse Position:", {Name="Text"})

Function p_UpdatePos(msg)
	SetLayerStyle("Text", {Text="Mouse Position:\nX="..msg.x.."\nY="..msg.y..""})
EndFunction

AppGUI$=[[<application id="app">
	<window id="Main" closegadget="true">
		<vgroup frame="true">
			<hollywood FixWidth="false" FixHeight="false" display="1"/>
		</vgroup>
	</window>
</application>]]
moai.CreateApp(AppGUI$)

InstallEventHandler({OnMouseMove=p_UpdatePos})

Repeat
	WaitEvent
Forever

User avatar
airsoftsoftwair
Posts: 2832
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: OnMouseMove not working with a Hollywood Display in RapaGUI 2.0 (Android)

Post by airsoftsoftwair » Sat Feb 16, 2019 1:25 pm

Right, I can reproduce this here. Will be fixed.

Post Reply