@@ -58,10 +58,14 @@ class Wolf3dFlutterInput extends Wolf3dInput {
|
|||||||
Set<LogicalKeyboardKey> _previousKeys = {};
|
Set<LogicalKeyboardKey> _previousKeys = {};
|
||||||
|
|
||||||
// --- Customization Helpers ---
|
// --- Customization Helpers ---
|
||||||
void bindKey(WolfInputAction action, LogicalKeyboardKey key) =>
|
void bindKey(WolfInputAction action, LogicalKeyboardKey key) {
|
||||||
|
bindings[action] = {};
|
||||||
bindings[action]?.add(key);
|
bindings[action]?.add(key);
|
||||||
void unbindKey(WolfInputAction action, LogicalKeyboardKey key) =>
|
}
|
||||||
|
|
||||||
|
void unbindKey(WolfInputAction action, LogicalKeyboardKey key) {
|
||||||
bindings[action]?.remove(key);
|
bindings[action]?.remove(key);
|
||||||
|
}
|
||||||
|
|
||||||
// --- Mouse Event Handlers ---
|
// --- Mouse Event Handlers ---
|
||||||
void onPointerDown(PointerDownEvent event) {
|
void onPointerDown(PointerDownEvent event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user