@@ -309,7 +309,7 @@ amdclean['core'] = function (require, shim, constants) {
309
309
sketch ( this ) ;
310
310
}
311
311
for ( var e in this . _events ) {
312
- var f = this [ 'on ' + e ] ;
312
+ var f = this [ '_on ' + e ] ;
313
313
if ( f ) {
314
314
var m = f . bind ( this ) ;
315
315
window . addEventListener ( e , m ) ;
@@ -2223,7 +2223,7 @@ amdclean['environment'] = function (require, core, constants) {
2223
2223
p5 . prototype . displayHeight = screen . height ;
2224
2224
p5 . prototype . windowWidth = window . innerWidth ;
2225
2225
p5 . prototype . windowHeight = window . innerHeight ;
2226
- p5 . prototype . onresize = function ( e ) {
2226
+ p5 . prototype . _onresize = function ( e ) {
2227
2227
this . _setProperty ( 'windowWidth' , window . innerWidth ) ;
2228
2228
this . _setProperty ( 'windowHeight' , window . innerHeight ) ;
2229
2229
var context = this . _isGlobal ? window : this ;
@@ -3360,7 +3360,7 @@ amdclean['inputkeyboard'] = function (require, core) {
3360
3360
p5 . prototype . keyIsPressed = false ;
3361
3361
p5 . prototype . key = '' ;
3362
3362
p5 . prototype . keyCode = 0 ;
3363
- p5 . prototype . onkeydown = function ( e ) {
3363
+ p5 . prototype . _onkeydown = function ( e ) {
3364
3364
this . _setProperty ( 'isKeyPressed' , true ) ;
3365
3365
this . _setProperty ( 'keyIsPressed' , true ) ;
3366
3366
this . _setProperty ( 'keyCode' , e . which ) ;
@@ -3378,7 +3378,7 @@ amdclean['inputkeyboard'] = function (require, core) {
3378
3378
}
3379
3379
}
3380
3380
} ;
3381
- p5 . prototype . onkeyup = function ( e ) {
3381
+ p5 . prototype . _onkeyup = function ( e ) {
3382
3382
var keyReleased = this . keyReleased || window . keyReleased ;
3383
3383
this . _setProperty ( 'isKeyPressed' , false ) ;
3384
3384
this . _setProperty ( 'keyIsPressed' , false ) ;
@@ -3396,7 +3396,7 @@ amdclean['inputkeyboard'] = function (require, core) {
3396
3396
}
3397
3397
}
3398
3398
} ;
3399
- p5 . prototype . onkeypress = function ( e ) {
3399
+ p5 . prototype . _onkeypress = function ( e ) {
3400
3400
this . _setProperty ( 'keyCode' , e . which ) ;
3401
3401
this . _setProperty ( 'key' , String . fromCharCode ( e . which ) ) ;
3402
3402
var keyTyped = this . keyTyped || window . keyTyped ;
@@ -3407,7 +3407,7 @@ amdclean['inputkeyboard'] = function (require, core) {
3407
3407
}
3408
3408
}
3409
3409
} ;
3410
- p5 . prototype . onblur = function ( e ) {
3410
+ p5 . prototype . _onblur = function ( e ) {
3411
3411
downKeys = { } ;
3412
3412
} ;
3413
3413
p5 . prototype . keyIsDown = function ( code ) {
@@ -3438,19 +3438,19 @@ amdclean['inputacceleration'] = function (require, core) {
3438
3438
} ;
3439
3439
var old_max_axis = '' ;
3440
3440
var new_max_axis = '' ;
3441
- p5 . prototype . ondeviceorientation = function ( e ) {
3441
+ p5 . prototype . _ondeviceorientation = function ( e ) {
3442
3442
this . _setProperty ( 'accelerationX' , e . beta ) ;
3443
3443
this . _setProperty ( 'accelerationY' , e . gamma ) ;
3444
3444
this . _setProperty ( 'accelerationZ' , e . alpha ) ;
3445
3445
this . _handleMotion ( ) ;
3446
3446
} ;
3447
- p5 . prototype . ondevicemotion = function ( e ) {
3447
+ p5 . prototype . _ondevicemotion = function ( e ) {
3448
3448
this . _setProperty ( 'accelerationX' , e . acceleration . x * 2 ) ;
3449
3449
this . _setProperty ( 'accelerationY' , e . acceleration . y * 2 ) ;
3450
3450
this . _setProperty ( 'accelerationZ' , e . acceleration . z * 2 ) ;
3451
3451
this . _handleMotion ( ) ;
3452
3452
} ;
3453
- p5 . prototype . onMozOrientation = function ( e ) {
3453
+ p5 . prototype . _onMozOrientation = function ( e ) {
3454
3454
this . _setProperty ( 'accelerationX' , e . x ) ;
3455
3455
this . _setProperty ( 'accelerationY' , e . y ) ;
3456
3456
this . _setProperty ( 'accelerationZ' , e . z ) ;
@@ -3547,7 +3547,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
3547
3547
}
3548
3548
}
3549
3549
} ;
3550
- p5 . prototype . onmousemove = function ( e ) {
3550
+ p5 . prototype . _onmousemove = function ( e ) {
3551
3551
var context = this . _isGlobal ? window : this ;
3552
3552
var executeDefault ;
3553
3553
this . _updateMouseCoords ( e ) ;
@@ -3573,7 +3573,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
3573
3573
}
3574
3574
}
3575
3575
} ;
3576
- p5 . prototype . onmousedown = function ( e ) {
3576
+ p5 . prototype . _onmousedown = function ( e ) {
3577
3577
var context = this . _isGlobal ? window : this ;
3578
3578
var executeDefault ;
3579
3579
this . _setProperty ( 'isMousePressed' , true ) ;
@@ -3593,7 +3593,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
3593
3593
this . _updateTouchCoords ( e ) ;
3594
3594
}
3595
3595
} ;
3596
- p5 . prototype . onmouseup = function ( e ) {
3596
+ p5 . prototype . _onmouseup = function ( e ) {
3597
3597
var context = this . _isGlobal ? window : this ;
3598
3598
var executeDefault ;
3599
3599
this . _setProperty ( 'isMousePressed' , false ) ;
@@ -3611,7 +3611,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
3611
3611
this . _updateTouchCoords ( e ) ;
3612
3612
}
3613
3613
} ;
3614
- p5 . prototype . onclick = function ( e ) {
3614
+ p5 . prototype . _onclick = function ( e ) {
3615
3615
var context = this . _isGlobal ? window : this ;
3616
3616
if ( typeof context . mouseClicked === 'function' ) {
3617
3617
var executeDefault = context . mouseClicked ( e ) ;
@@ -3620,7 +3620,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
3620
3620
}
3621
3621
}
3622
3622
} ;
3623
- p5 . prototype . onmousewheel = function ( e ) {
3623
+ p5 . prototype . _onmousewheel = function ( e ) {
3624
3624
var context = this . _isGlobal ? window : this ;
3625
3625
if ( typeof context . mouseWheel === 'function' ) {
3626
3626
var executeDefault = context . mouseWheel ( e ) ;
@@ -3697,7 +3697,7 @@ amdclean['inputtouch'] = function (require, core) {
3697
3697
y : e . changedTouches [ i ] . pageY - rect . top
3698
3698
} ;
3699
3699
}
3700
- p5 . prototype . ontouchstart = function ( e ) {
3700
+ p5 . prototype . _ontouchstart = function ( e ) {
3701
3701
var context = this . _isGlobal ? window : this ;
3702
3702
var executeDefault ;
3703
3703
this . _updateTouchCoords ( e ) ;
@@ -3714,7 +3714,7 @@ amdclean['inputtouch'] = function (require, core) {
3714
3714
}
3715
3715
}
3716
3716
} ;
3717
- p5 . prototype . ontouchmove = function ( e ) {
3717
+ p5 . prototype . _ontouchmove = function ( e ) {
3718
3718
var context = this . _isGlobal ? window : this ;
3719
3719
var executeDefault ;
3720
3720
this . _updateTouchCoords ( e ) ;
@@ -3731,7 +3731,7 @@ amdclean['inputtouch'] = function (require, core) {
3731
3731
this . _updateMouseCoords ( e ) ;
3732
3732
}
3733
3733
} ;
3734
- p5 . prototype . ontouchend = function ( e ) {
3734
+ p5 . prototype . _ontouchend = function ( e ) {
3735
3735
this . _updateTouchCoords ( e ) ;
3736
3736
if ( this . touches . length === 0 ) {
3737
3737
this . _setProperty ( 'touchIsDown' , false ) ;
0 commit comments