summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2005-11-15 00:09:30 +0000
committerIan C <ianc@noddybox.co.uk>2005-11-15 00:09:30 +0000
commitb306315dd2c837e565c69a8a91875d7fc2f174c6 (patch)
tree78456f6fc5147e38826b5b25ba2b81002588964c
parentadfafd618a0095396441f765647f18add4d330ea (diff)
Further updates for 1.12
-rw-r--r--gfxmenu.mod/gfxmenu.bmx2
-rw-r--r--simplegui.mod/simplegui.bmx6
2 files changed, 4 insertions, 4 deletions
diff --git a/gfxmenu.mod/gfxmenu.bmx b/gfxmenu.mod/gfxmenu.bmx
index 0f2c6fa..bc51f9d 100644
--- a/gfxmenu.mod/gfxmenu.bmx
+++ b/gfxmenu.mod/gfxmenu.bmx
@@ -113,7 +113,7 @@ Type TGfxMenu
opt.b=Towards(over_b,opt.b)
SetColor(opt.r,opt.g,opt.b)
- If KeyDown(MOUSE_LEFT)
+ If MouseDown(1)
mbdown=True
DrawImage(opt.i,opt.x,opt.y+2)
any=True
diff --git a/simplegui.mod/simplegui.bmx b/simplegui.mod/simplegui.bmx
index f5d6394..f49c8dc 100644
--- a/simplegui.mod/simplegui.bmx
+++ b/simplegui.mod/simplegui.bmx
@@ -1164,8 +1164,8 @@ Type TGUIHandler
Method EventLoop()
Local x:Int=MouseX()
Local y:Int=MouseY()
- Local b:Int=KeyHit(MOUSE_LEFT)>0
- Local drag:Int=KeyDown(MOUSE_LEFT)
+ Local b:Int=MouseHit(1)>0
+ Local drag:Int=MouseDown(1)
Local w:TWidget=LocateWidget(x,y)
@@ -1367,7 +1367,7 @@ Function GUIMenu(title:String, options:String[], x:Int, y:Int, i:TImage=Null)
Local click:TWidget=Null
- While click=Null And KeyHit(MOUSE_RIGHT)=0
+ While click=Null And MouseHit(2)=0
Cls
SetAlpha(0.5)
DrawImage(back,0,0)