@@ -356,11 +356,11 @@ var LibraryGLFW = {
356
356
if ( charCode == 0 || ( charCode >= 0x00 && charCode <= 0x1F ) ) return ;
357
357
358
358
#if USE_GLFW == 2
359
- Module [ 'dynCall_vii' ] ( GLFW . active . charFunc , charCode , 1 ) ;
359
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . charFunc , charCode , 1 ) ;
360
360
#endif
361
361
362
362
#if USE_GLFW == 3
363
- Module [ 'dynCall_vii' ] ( GLFW . active . charFunc , GLFW . active . id , charCode ) ;
363
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . charFunc , GLFW . active . id , charCode ) ;
364
364
#endif
365
365
} ,
366
366
@@ -378,12 +378,12 @@ var LibraryGLFW = {
378
378
if ( ! GLFW . active . keyFunc ) return ;
379
379
380
380
#if USE_GLFW == 2
381
- Module [ 'dynCall_vii' ] ( GLFW . active . keyFunc , key , status ) ;
381
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . keyFunc , key , status ) ;
382
382
#endif
383
383
384
384
#if USE_GLFW == 3
385
385
if ( repeat ) status = 2 ; // GLFW_REPEAT
386
- Module [ 'dynCall_viiiii' ] ( GLFW . active . keyFunc , GLFW . active . id , key , keyCode , status , GLFW . getModBits ( GLFW . active ) ) ;
386
+ { { { makeDynCall ( 'viiiii' ) } } } ( GLFW . active . keyFunc , GLFW . active . id , key , keyCode , status , GLFW . getModBits ( GLFW . active ) ) ;
387
387
#endif
388
388
} ,
389
389
@@ -428,11 +428,11 @@ var LibraryGLFW = {
428
428
if ( event . target != Module [ "canvas" ] || ! GLFW . active . cursorPosFunc ) return ;
429
429
430
430
#if USE_GLFW == 2
431
- Module [ 'dynCall_vii' ] ( GLFW . active . cursorPosFunc , Browser . mouseX , Browser . mouseY ) ;
431
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . cursorPosFunc , Browser . mouseX , Browser . mouseY ) ;
432
432
#endif
433
433
434
434
#if USE_GLFW == 3
435
- Module [ 'dynCall_vidd' ] ( GLFW . active . cursorPosFunc , GLFW . active . id , Browser . mouseX , Browser . mouseY ) ;
435
+ { { { makeDynCall ( 'vidd' ) } } } ( GLFW . active . cursorPosFunc , GLFW . active . id , Browser . mouseX , Browser . mouseY ) ;
436
436
#endif
437
437
} ,
438
438
@@ -456,7 +456,7 @@ var LibraryGLFW = {
456
456
if ( event . target != Module [ "canvas" ] || ! GLFW . active . cursorEnterFunc ) return ;
457
457
458
458
#if USE_GLFW == 3
459
- Module [ 'dynCall_vii' ] ( GLFW . active . cursorEnterFunc , GLFW . active . id , 1 ) ;
459
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . cursorEnterFunc , GLFW . active . id , 1 ) ;
460
460
#endif
461
461
} ,
462
462
@@ -466,7 +466,7 @@ var LibraryGLFW = {
466
466
if ( event . target != Module [ "canvas" ] || ! GLFW . active . cursorEnterFunc ) return ;
467
467
468
468
#if USE_GLFW == 3
469
- Module [ 'dynCall_vii' ] ( GLFW . active . cursorEnterFunc , GLFW . active . id , 0 ) ;
469
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . cursorEnterFunc , GLFW . active . id , 0 ) ;
470
470
#endif
471
471
} ,
472
472
@@ -491,11 +491,11 @@ var LibraryGLFW = {
491
491
if ( ! GLFW . active . mouseButtonFunc ) return ;
492
492
493
493
#if USE_GLFW == 2
494
- Module [ 'dynCall_vii' ] ( GLFW . active . mouseButtonFunc , eventButton , status ) ;
494
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . mouseButtonFunc , eventButton , status ) ;
495
495
#endif
496
496
497
497
#if USE_GLFW == 3
498
- Module [ 'dynCall_viiii' ] ( GLFW . active . mouseButtonFunc , GLFW . active . id , eventButton , status , GLFW . getModBits ( GLFW . active ) ) ;
498
+ { { { makeDynCall ( 'viiii' ) } } } ( GLFW . active . mouseButtonFunc , GLFW . active . id , eventButton , status , GLFW . getModBits ( GLFW . active ) ) ;
499
499
#endif
500
500
} ,
501
501
@@ -518,7 +518,7 @@ var LibraryGLFW = {
518
518
if ( ! GLFW . active || ! GLFW . active . scrollFunc || event . target != Module [ 'canvas' ] ) return ;
519
519
520
520
#if USE_GLFW == 2
521
- Module [ 'dynCall_vi' ] ( GLFW . active . scrollFunc , GLFW . wheelPos ) ;
521
+ { { { makeDynCall ( 'vi' ) } } } ( GLFW . active . scrollFunc , GLFW . wheelPos ) ;
522
522
#endif
523
523
524
524
#if USE_GLFW == 3
@@ -532,7 +532,7 @@ var LibraryGLFW = {
532
532
sy = event . deltaY ;
533
533
}
534
534
535
- Module [ 'dynCall_vidd' ] ( GLFW . active . scrollFunc , GLFW . active . id , sx , sy ) ;
535
+ { { { makeDynCall ( 'vidd' ) } } } ( GLFW . active . scrollFunc , GLFW . active . id , sx , sy ) ;
536
536
#endif
537
537
538
538
event . preventDefault ( ) ;
@@ -587,11 +587,11 @@ var LibraryGLFW = {
587
587
if ( ! GLFW . active . windowSizeFunc ) return ;
588
588
589
589
#if USE_GLFW == 2
590
- Module [ 'dynCall_vii' ] ( GLFW . active . windowSizeFunc , GLFW . active . width , GLFW . active . height ) ;
590
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . active . windowSizeFunc , GLFW . active . width , GLFW . active . height ) ;
591
591
#endif
592
592
593
593
#if USE_GLFW == 3
594
- Module [ 'dynCall_viii' ] ( GLFW . active . windowSizeFunc , GLFW . active . id , GLFW . active . width , GLFW . active . height ) ;
594
+ { { { makeDynCall ( 'viii' ) } } } ( GLFW . active . windowSizeFunc , GLFW . active . id , GLFW . active . width , GLFW . active . height ) ;
595
595
#endif
596
596
} ,
597
597
@@ -601,7 +601,7 @@ var LibraryGLFW = {
601
601
if ( ! GLFW . active . framebufferSizeFunc ) return ;
602
602
603
603
#if USE_GLFW == 3
604
- Module [ 'dynCall_viii' ] ( GLFW . active . framebufferSizeFunc , GLFW . active . id , GLFW . active . width , GLFW . active . height ) ;
604
+ { { { makeDynCall ( 'viii' ) } } } ( GLFW . active . framebufferSizeFunc , GLFW . active . id , GLFW . active . width , GLFW . active . height ) ;
605
605
#endif
606
606
} ,
607
607
@@ -684,7 +684,7 @@ var LibraryGLFW = {
684
684
} ;
685
685
686
686
if ( GLFW . joystickFunc ) {
687
- Module [ 'dynCall_vii' ] ( GLFW . joystickFunc , joy , 0x00040001 ) ; // GLFW_CONNECTED
687
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . joystickFunc , joy , 0x00040001 ) ; // GLFW_CONNECTED
688
688
}
689
689
}
690
690
@@ -702,7 +702,7 @@ var LibraryGLFW = {
702
702
console . log ( 'glfw joystick disconnected' , joy ) ;
703
703
704
704
if ( GLFW . joystickFunc ) {
705
- Module [ 'dynCall_vii' ] ( GLFW . joystickFunc , joy , 0x00040002 ) ; // GLFW_DISCONNECTED
705
+ { { { makeDynCall ( 'vii' ) } } } ( GLFW . joystickFunc , joy , 0x00040002 ) ; // GLFW_DISCONNECTED
706
706
}
707
707
708
708
_free ( GLFW . joys [ joy ] . id ) ;
@@ -780,7 +780,7 @@ var LibraryGLFW = {
780
780
var data = e . target . result ;
781
781
FS . writeFile ( path , new Uint8Array ( data ) ) ;
782
782
if ( ++ written === count ) {
783
- Module [ 'dynCall_viii' ] ( GLFW . active . dropFunc , GLFW . active . id , count , filenames ) ;
783
+ { { { makeDynCall ( 'viii' ) } } } ( GLFW . active . dropFunc , GLFW . active . id , count , filenames ) ;
784
784
785
785
for ( var i = 0 ; i < filenamesArray . length ; ++ i ) {
786
786
_free ( filenamesArray [ i ] ) ;
@@ -820,7 +820,7 @@ var LibraryGLFW = {
820
820
// function returns.
821
821
// GLFW3 on the over hand doesn't have this behavior (https://github.com/glfw/glfw/issues/62).
822
822
if ( ! win . windowSizeFunc ) return ;
823
- Module [ 'dynCall_vii' ] ( win . windowSizeFunc , win . width , win . height ) ;
823
+ { { { makeDynCall ( 'vii' ) } } } ( win . windowSizeFunc , win . width , win . height ) ;
824
824
#endif
825
825
} ,
826
826
@@ -966,11 +966,11 @@ var LibraryGLFW = {
966
966
if ( ! win . windowSizeFunc ) return ;
967
967
968
968
#if USE_GLFW == 2
969
- Module [ 'dynCall_vii' ] ( win . windowSizeFunc , width , height ) ;
969
+ { { { makeDynCall ( 'vii' ) } } } ( win . windowSizeFunc , width , height ) ;
970
970
#endif
971
971
972
972
#if USE_GLFW == 3
973
- Module [ 'dynCall_viii' ] ( win . windowSizeFunc , win . id , width , height ) ;
973
+ { { { makeDynCall ( 'viii' ) } } } ( win . windowSizeFunc , win . id , width , height ) ;
974
974
#endif
975
975
} ,
976
976
@@ -1030,7 +1030,7 @@ var LibraryGLFW = {
1030
1030
1031
1031
#if USE_GLFW == 3
1032
1032
if ( win . windowCloseFunc )
1033
- Module [ 'dynCall_vi' ] ( win . windowCloseFunc , win . id ) ;
1033
+ { { { makeDynCall ( 'vi' ) } } } ( win . windowCloseFunc , win . id ) ;
1034
1034
#endif
1035
1035
1036
1036
GLFW . windows [ win . id - 1 ] = null ;
0 commit comments