-
-
Notifications
You must be signed in to change notification settings - Fork 987
Expand file tree
/
Copy pathmain.js
More file actions
37 lines (35 loc) · 776 Bytes
/
main.js
File metadata and controls
37 lines (35 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//This is the require.js main file for the main interface
requirejs.config({
paths: {
jquery: "jquery-3.7.1"
},
//prolong js timeout
waitSeconds: 60,
map:{
//add some fixes to jquery ui
"*":{
"jquery-ui":"ui/jqueryuifixes"
},
//allow jquery fix to access jquery-ui
"jquery.ui.touch-punch":{
"jquery-ui":"jquery-ui"
}
},
shim:{
"globalize":{
exports: "Globalize"
},
"jquery-ui":{
deps: ["globalize"]
},
"jquery.ui.touch-punch":{
deps: ["jquery-ui"]
}
}
});
// Load main UI module and Gamepad controller
require(["ui/mainui", "ui/gpcontroller"], function(mainui, gpcontroller) {
"use strict";
// Initialize gamepad controller after main UI is ready
// The actual initialization will happen in mainui.js when UI is ready
});