isaacscript-common 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,3 +29,4 @@ export declare function isMoveActionTriggeredOnAnyInput(): boolean;
|
|
|
29
29
|
export declare function isShootAction(buttonAction: ButtonAction): boolean;
|
|
30
30
|
export declare function isShootActionPressedOnAnyInput(): boolean;
|
|
31
31
|
export declare function isShootActionTriggeredOnAnyInput(): boolean;
|
|
32
|
+
export declare function keyboardToString(keyboard: Keyboard): string;
|
package/dist/functions/input.lua
CHANGED
|
@@ -100,4 +100,7 @@ function ____exports.isShootActionTriggeredOnAnyInput(self)
|
|
|
100
100
|
function(____, shootAction) return ____exports.isActionTriggeredOnAnyInput(nil, shootAction) end
|
|
101
101
|
)
|
|
102
102
|
end
|
|
103
|
+
function ____exports.keyboardToString(self, keyboard)
|
|
104
|
+
return Keyboard[keyboard] or "unknown"
|
|
105
|
+
end
|
|
103
106
|
return ____exports
|