Skip to content

Commit

Permalink
exterior游戏场景中鼠标输入也会传入按键了
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Sep 11, 2024
1 parent c13e963 commit b702d75
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions assets/scene/game_out.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ function scene.touchUp(x,y,id)
GAME.cursorUp(x,y,id)
end

function scene.mouseDown(x,y,_)
GAME.cursorDown(x,y,1)
function scene.mouseDown(x,y,button)
GAME.cursorDown(x,y,button)
end
function scene.mouseMove(x,y,dx,dy)
GAME.cursorMove(x,y,dx,dy,1)
GAME.cursorMove(x,y,dx,dy,false)
end
function scene.mouseUp(x,y,_)
GAME.cursorUp(x,y,1)
function scene.mouseUp(x,y,button)
GAME.cursorUp(x,y,button)
end

function scene.update(dt)
Expand Down

0 comments on commit b702d75

Please sign in to comment.