mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-01 04:43:37 +02:00
15 lines
457 B
C#
15 lines
457 B
C#
using MLEM.Input;
|
|
|
|
namespace MLEM.Ui {
|
|
public class UiControls {
|
|
|
|
public BoolQuery MainButton = h => h.IsMouseButtonPressed(MouseButton.Left);
|
|
public BoolQuery SecondaryButton = h => h.IsMouseButtonPressed(MouseButton.Right);
|
|
public FloatQuery Scroll = h => h.LastScrollWheel - h.ScrollWheel;
|
|
|
|
public delegate bool BoolQuery(InputHandler handler);
|
|
|
|
public delegate float FloatQuery(InputHandler handler);
|
|
|
|
}
|
|
} |