Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

DragonRuby Game Toolkit

An intuitive 2D game engine. Fast, cross-platform, tiny, hot loaded. · By DragonRuby

Identify the button that triggers mouse click / up / down event

A topic by ZereoX created Jul 24, 2019 Views: 103 Replies: 1
Viewing posts 1 to 2
(2 edits)

Is there a way to identify or specify which button triggers a mouse click / up / down event (button1, button2, button3)? (similar to keyboard and controllers. ie inputs.keyboard.key_down.[KEY])


Adding right click and mouse wheel is a todo. We’re very close to supporting touch devices, so we’ll address “all the buttons and fingers” with a  generalized approach.