GLBasic forum

Main forum => GLBasic - en => Topic started by: ggindlesperger on 2011-Apr-19

Title: Mouseaxis on WebOS
Post by: ggindlesperger on 2011-Apr-19
Can anyone confirm that Mouseaxis commands work for them in WebOS? My Mouseaxis routines do not seem to be doing anything in WebOS.

Thanks in advance.
Title: Re: Mouseaxis on WebOS
Post by: Kitty Hello on 2011-Apr-19
can you post a tiny example, please?
Title: Re: Mouseaxis on WebOS
Post by: ggindlesperger on 2011-Apr-19
Sure...I'll post it this evening. If you happen to have Hairy Legs it is the global score section. You just glide your finger to scroll through the 50 global scores. In WebOS it does nothing at all. I will submit the code this evening when I get home from work.


Thanks So Much
Title: Re: Mouseaxis on WebOS
Post by: Millerszone on 2011-Apr-19
My leaderboard scroll works on HTD Baseball using 1.4.5. Also, I am using touch scroll for my help screen and that works,
probably because the sprite is so big, more area to touch.
Title: Re: Mouseaxis on WebOS
Post by: ggindlesperger on 2011-Apr-20
Here is the code I was talking about. I have the Mouseaxis commands commented out because I worked around it for now. The 2 IF my> statements were added as work arounds. Instead of moving your finger to scroll it just scrolls up or down based on where you touch the screen. The Mouseaxis is supposed to adjust the variable y which is then used as the vertical value to display the 50 names and scores. I got it off at about 4 names and scores, the rest is all repetitive. This worked fine in iOS. On webOS it does nothing when you touch and drag.

Code (glbasic) Select
IF scoremode=1

IF b1=1

IF my>=90 AND my<240
y=y-3
ENDIF

IF my<450 AND my>=240
y=y+3
ENDIF

//    IF MOUSEAXIS(1)>0 THEN y=y+MOUSEAXIS(1)
//    IF MOUSEAXIS(1)<0 THEN y=y+MOUSEAXIS(1)
ENDIF

IF y>100 THEN y=100

IF y<-570 THEN y=-570

PRINT "1."+player1$,30,y
PRINT score1,220,y
PRINT "2."+player2$,30,y+20
PRINT score2,220,y+20
PRINT "3."+player3$,30,y+40
PRINT score3,220,y+40
PRINT "4."+player4$,30,y+60
PRINT score4,220,y+60


Hope this helps.