- Home>
- RMVX Script , RMVX-Ace Script , RMXP Script >
- [RGSS/2/3] Drago - Custom Input
Posted by : LiTTleDRAgo
May 31, 2014
Just another Keyboard Script
How to Use
Keyboard.press?(KEY)
Keyboard.trigger?(KEY)
Keyboard.repeat?(KEY)
Keyboard.release?(KEY)
KEY = Keyboard key (look at script)
Example :
Keyboard.press?(:Enter)
Keyboard.press?('Enter')
Update v.2.00
Mouse.press?(MKEY)
Mouse.trigger?(MKEY)
Mouse.repeat?(MKEY)
Mouse.release?(MKEY)
MKEY = 'Mouse Left', 'Mouse Right', 'Mouse Middle'
Mouse.x # returns x position of the mouse
Mouse.y # returns y position of the mouse
Mouse.dragging? # returns true if mouse is dragging
Mouse.drag_rect # returns as a rect if mouse is dragging
Mouse.in_area?(RECT) # returns true if mouse position inside the area
Mouse.scroll_up? # returns true if mouse wheel is scrolled up
Mouse.scroll_down? # returns true if mouse wheel is scrolled down
Example :
Mouse.trigger?("Mouse Left")
Mouse.trigger?("Mouse Right")
Mouse.trigger?(Mouse::PRIMARY)
Mouse.trigger?(Mouse::SECONDARY)
If your game lagged, try disable wheel scroll function
press CTRL+F and find @wheel_scroll = true and change it to false
Require
- Drago - Core Engine v1.51
Related Posts :
RMVX Script,
RMVX-Ace Script,
RMXP Script