alt+8 cycles backwards through shapes

This commit is contained in:
An Orbit 2024-05-20 11:30:57 -04:00 committed by GitHub
parent f44b5f97d0
commit 3d2b1fdaf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -3374,11 +3374,19 @@ color1 and color2 spread through striped paint like dye does with itself. <u>col
document.body.removeChild(link);
}
//mod: shift+8 to change cursor shape
if (e.keyCode == 56 && shiftDown) {
if (e.keyCode == 56 && shiftDown == 1) {
var currentShapeIndex = shapeOrder.indexOf(currentShape);
currentShape = shapeOrder[(currentShapeIndex + 1) % shapeOrder.length];
logMessage(`Current shape: ${currentShape}`)
}
//mod: alt+8 to change cursor shape
if (e.keyCode == 56 && shiftDown == 2) {
var currentShapeIndex = shapeOrder.indexOf(currentShape);
var newIndex = (currentShapeIndex - 1) % shapeOrder.length;
if(newIndex < 0) { newIndex = shapeOrder.length - 1 };
currentShape = shapeOrder[newIndex];
logMessage(`Current shape: ${currentShape}`)
}
// x = explodeAt()
/*else if (e.keyCode == 88) {