mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Refactored Input.js to Events.js
Started working on Input.js, this time it's used to handle mouse clicks and keyboard shortcuts.
This commit is contained in:
@@ -3,8 +3,8 @@ const Startup = (() => {
|
||||
let firstPixel = true;
|
||||
let splashPostfix = '';
|
||||
|
||||
Input.on('click', 'create-button', create, false);
|
||||
Input.on('click', 'create-button-splash', create, true);
|
||||
Events.on('click', 'create-button', create, false);
|
||||
Events.on('click', 'create-button-splash', create, true);
|
||||
|
||||
function create(isSplash) {
|
||||
// If I'm creating from the splash menu, I append '-splash' so I get the corresponding values
|
||||
|
||||
Reference in New Issue
Block a user