@@ -309,7 +309,7 @@ amdclean['core'] = function (require, shim, constants) {
309309 sketch ( this ) ;
310310 }
311311 for ( var e in this . _events ) {
312- var f = this [ 'on ' + e ] ;
312+ var f = this [ '_on ' + e ] ;
313313 if ( f ) {
314314 var m = f . bind ( this ) ;
315315 window . addEventListener ( e , m ) ;
@@ -2223,7 +2223,7 @@ amdclean['environment'] = function (require, core, constants) {
22232223 p5 . prototype . displayHeight = screen . height ;
22242224 p5 . prototype . windowWidth = window . innerWidth ;
22252225 p5 . prototype . windowHeight = window . innerHeight ;
2226- p5 . prototype . onresize = function ( e ) {
2226+ p5 . prototype . _onresize = function ( e ) {
22272227 this . _setProperty ( 'windowWidth' , window . innerWidth ) ;
22282228 this . _setProperty ( 'windowHeight' , window . innerHeight ) ;
22292229 var context = this . _isGlobal ? window : this ;
@@ -3360,7 +3360,7 @@ amdclean['inputkeyboard'] = function (require, core) {
33603360 p5 . prototype . keyIsPressed = false ;
33613361 p5 . prototype . key = '' ;
33623362 p5 . prototype . keyCode = 0 ;
3363- p5 . prototype . onkeydown = function ( e ) {
3363+ p5 . prototype . _onkeydown = function ( e ) {
33643364 this . _setProperty ( 'isKeyPressed' , true ) ;
33653365 this . _setProperty ( 'keyIsPressed' , true ) ;
33663366 this . _setProperty ( 'keyCode' , e . which ) ;
@@ -3378,7 +3378,7 @@ amdclean['inputkeyboard'] = function (require, core) {
33783378 }
33793379 }
33803380 } ;
3381- p5 . prototype . onkeyup = function ( e ) {
3381+ p5 . prototype . _onkeyup = function ( e ) {
33823382 var keyReleased = this . keyReleased || window . keyReleased ;
33833383 this . _setProperty ( 'isKeyPressed' , false ) ;
33843384 this . _setProperty ( 'keyIsPressed' , false ) ;
@@ -3396,7 +3396,7 @@ amdclean['inputkeyboard'] = function (require, core) {
33963396 }
33973397 }
33983398 } ;
3399- p5 . prototype . onkeypress = function ( e ) {
3399+ p5 . prototype . _onkeypress = function ( e ) {
34003400 this . _setProperty ( 'keyCode' , e . which ) ;
34013401 this . _setProperty ( 'key' , String . fromCharCode ( e . which ) ) ;
34023402 var keyTyped = this . keyTyped || window . keyTyped ;
@@ -3407,7 +3407,7 @@ amdclean['inputkeyboard'] = function (require, core) {
34073407 }
34083408 }
34093409 } ;
3410- p5 . prototype . onblur = function ( e ) {
3410+ p5 . prototype . _onblur = function ( e ) {
34113411 downKeys = { } ;
34123412 } ;
34133413 p5 . prototype . keyIsDown = function ( code ) {
@@ -3438,19 +3438,19 @@ amdclean['inputacceleration'] = function (require, core) {
34383438 } ;
34393439 var old_max_axis = '' ;
34403440 var new_max_axis = '' ;
3441- p5 . prototype . ondeviceorientation = function ( e ) {
3441+ p5 . prototype . _ondeviceorientation = function ( e ) {
34423442 this . _setProperty ( 'accelerationX' , e . beta ) ;
34433443 this . _setProperty ( 'accelerationY' , e . gamma ) ;
34443444 this . _setProperty ( 'accelerationZ' , e . alpha ) ;
34453445 this . _handleMotion ( ) ;
34463446 } ;
3447- p5 . prototype . ondevicemotion = function ( e ) {
3447+ p5 . prototype . _ondevicemotion = function ( e ) {
34483448 this . _setProperty ( 'accelerationX' , e . acceleration . x * 2 ) ;
34493449 this . _setProperty ( 'accelerationY' , e . acceleration . y * 2 ) ;
34503450 this . _setProperty ( 'accelerationZ' , e . acceleration . z * 2 ) ;
34513451 this . _handleMotion ( ) ;
34523452 } ;
3453- p5 . prototype . onMozOrientation = function ( e ) {
3453+ p5 . prototype . _onMozOrientation = function ( e ) {
34543454 this . _setProperty ( 'accelerationX' , e . x ) ;
34553455 this . _setProperty ( 'accelerationY' , e . y ) ;
34563456 this . _setProperty ( 'accelerationZ' , e . z ) ;
@@ -3547,7 +3547,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
35473547 }
35483548 }
35493549 } ;
3550- p5 . prototype . onmousemove = function ( e ) {
3550+ p5 . prototype . _onmousemove = function ( e ) {
35513551 var context = this . _isGlobal ? window : this ;
35523552 var executeDefault ;
35533553 this . _updateMouseCoords ( e ) ;
@@ -3573,7 +3573,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
35733573 }
35743574 }
35753575 } ;
3576- p5 . prototype . onmousedown = function ( e ) {
3576+ p5 . prototype . _onmousedown = function ( e ) {
35773577 var context = this . _isGlobal ? window : this ;
35783578 var executeDefault ;
35793579 this . _setProperty ( 'isMousePressed' , true ) ;
@@ -3593,7 +3593,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
35933593 this . _updateTouchCoords ( e ) ;
35943594 }
35953595 } ;
3596- p5 . prototype . onmouseup = function ( e ) {
3596+ p5 . prototype . _onmouseup = function ( e ) {
35973597 var context = this . _isGlobal ? window : this ;
35983598 var executeDefault ;
35993599 this . _setProperty ( 'isMousePressed' , false ) ;
@@ -3611,7 +3611,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
36113611 this . _updateTouchCoords ( e ) ;
36123612 }
36133613 } ;
3614- p5 . prototype . onclick = function ( e ) {
3614+ p5 . prototype . _onclick = function ( e ) {
36153615 var context = this . _isGlobal ? window : this ;
36163616 if ( typeof context . mouseClicked === 'function' ) {
36173617 var executeDefault = context . mouseClicked ( e ) ;
@@ -3620,7 +3620,7 @@ amdclean['inputmouse'] = function (require, core, constants) {
36203620 }
36213621 }
36223622 } ;
3623- p5 . prototype . onmousewheel = function ( e ) {
3623+ p5 . prototype . _onmousewheel = function ( e ) {
36243624 var context = this . _isGlobal ? window : this ;
36253625 if ( typeof context . mouseWheel === 'function' ) {
36263626 var executeDefault = context . mouseWheel ( e ) ;
@@ -3697,7 +3697,7 @@ amdclean['inputtouch'] = function (require, core) {
36973697 y : e . changedTouches [ i ] . pageY - rect . top
36983698 } ;
36993699 }
3700- p5 . prototype . ontouchstart = function ( e ) {
3700+ p5 . prototype . _ontouchstart = function ( e ) {
37013701 var context = this . _isGlobal ? window : this ;
37023702 var executeDefault ;
37033703 this . _updateTouchCoords ( e ) ;
@@ -3714,7 +3714,7 @@ amdclean['inputtouch'] = function (require, core) {
37143714 }
37153715 }
37163716 } ;
3717- p5 . prototype . ontouchmove = function ( e ) {
3717+ p5 . prototype . _ontouchmove = function ( e ) {
37183718 var context = this . _isGlobal ? window : this ;
37193719 var executeDefault ;
37203720 this . _updateTouchCoords ( e ) ;
@@ -3731,7 +3731,7 @@ amdclean['inputtouch'] = function (require, core) {
37313731 this . _updateMouseCoords ( e ) ;
37323732 }
37333733 } ;
3734- p5 . prototype . ontouchend = function ( e ) {
3734+ p5 . prototype . _ontouchend = function ( e ) {
37353735 this . _updateTouchCoords ( e ) ;
37363736 if ( this . touches . length === 0 ) {
37373737 this . _setProperty ( 'touchIsDown' , false ) ;
0 commit comments