like2d 2.10.1 → 2.10.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.
|
@@ -65,7 +65,7 @@ export const mapStick = (gp, mapping) => {
|
|
|
65
65
|
return mapping.map((axis) => (axis.invert ? -1 : 1) * (gp.axes[axis.index] ?? 0));
|
|
66
66
|
};
|
|
67
67
|
//// ************* SDL Gamepad auto-binding system ******************* ////
|
|
68
|
-
import mappingDbRaw from "./controllerdb.json";
|
|
68
|
+
import mappingDbRaw from "./controllerdb.json" with { type: 'json' };
|
|
69
69
|
const mappingDb = new Map(Object.entries(mappingDbRaw[detectedOs]).map(([k, v]) => [
|
|
70
70
|
Number(k),
|
|
71
71
|
{
|