weird controls problem in lua player for windows

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
zhaD
Posts: 5
Joined: Wed Sep 07, 2005 5:28 am
Location: Québec/Canada

weird controls problem in lua player for windows

Post by zhaD »

the problem is when I press square (D on the keybard) pad:left() is also true and when I press circle (F) pad:down is true.

here is the function in which this happens

Code: Select all

function controlSel()
   pad = Controls.read()

   if pad:down() then
      selY = selY + 2
      if selY > 257 then
         selY = 257
      end
   end
   
   if pad:up() then
      selY = selY - 2
      if selY < 0 then
         selY = 0
      end
   end
   
   if pad&#58;left&#40;&#41; then
      selX = selX - 2
      if selX < 0 then
         selX = 0
      end
   end
   
   if pad&#58;right&#40;&#41; then
      selX = selX + 2
      if selX > 465 then
         selX = 465
      end
   end

   if pad&#58;triangle&#40;&#41; then
      units&#91;1&#93;.angle = 90
   end

   if pad&#58;cross&#40;&#41; then
      units&#91;1&#93;.angle = 270
   end

   if pad&#58;circle&#40;&#41; then
      units&#91;1&#93;.angle = 0
   end

   if pad&#58;square&#40;&#41; then
      units&#91;1&#93;.angle = 180
   end

end
Slopey
Posts: 24
Joined: Sun Jul 31, 2005 8:13 pm

Post by Slopey »

Its a bug in the Windows player - I reported it previously, hopefully a fix is not too far off! :)
chaos
Posts: 135
Joined: Sun Apr 10, 2005 5:05 pm

Post by chaos »

i think the new version fixed this already.
Chaosmachine Studios: High Quality Homebrew.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

shine allowed me to host the luaplayer for windows alpha 2 on my website, it has some fixes, but still some bugs left
  • * no analog stick
    * no directorylisting
    * no sound
greets
lumo
"Good artists copy, great artists steal."
Pablo Picasso
go2lumo.com
Post Reply