- New Objects (Flexbox, Graph, Treeview) - Pluginsystem to add/remove functionality - Reworked the entire Object system, instead of one big Object Class we have multiple classes: Object, VisualObject, ChangeableObject - Instead of one big Frame Class we have multiple Frame Classes: BaseFrame, Frame, MovableFrame, ScrollableFrame, MonitorFrame, Flexbox - Removed the Animation Object, and added a animation plugin instead - Removed the Graphic Object and merged it's functionality with the image object - Updated currently existing objects
854 B
854 B
setMouseMoveThrottle
Description
This feature is only available for CraftOS-PC.
CraftOS-PC has a built-in mouse_move event, which is disabled by default. By using this method, it will also enable the event for you. Remember, Basalt does not disable the event after closing the program, which means the event stays active. If you want to disable the event, please use config.set("mouse_move_throttle", -1) in your Lua prompt or your program.
Sidenote: A very low amount can make the program laggy because it literally spams the mouse_move event. So, use it carefully.
Parameters
numberthrottle - A number in milliseconds representing the mouse move throttle.
Usage
- Set the mouse move throttle to 50 milliseconds
local basalt = require("basalt")
basalt.setMouseMoveThrottle(50)