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