-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.kt
More file actions
35 lines (31 loc) · 1.02 KB
/
events.kt
File metadata and controls
35 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.neptuneclient.voidui.event.events
import com.neptuneclient.voidui.event.Event
/**
* Fired once a mouse button is pressed down.
*
* **This event needs to be called when implementing the library.**
*
* @param button The mouse button which was pressed
* @param x The x position of the mouse.
* @param y The y position of the mouse.
*/
class MouseClickedEvent(val button: Int, val x: Float, val y: Float) : Event()
/**
* Fired once a mouse button is released.
*
* **This event needs to be called when implementing the library.**
*
* @param button The mouse button which was released.
* @param x The x position of the mouse.
* @param y The y position of the mouse.
*/
class MouseReleasedEvent(val button: Int, val x: Float, val y: Float) : Event()
/**
* Called whenever the mouse is moved.
*
* **This event needs to be called when implementing the library.**
*
* @param x The x position of the mouse.
* @param y The y position of the mouse.
*/
class MouseMovementEvent(val x: Float, val y: Float) : Event()