Fixed issue with arcs

This commit is contained in:
Devine Lu Linvega
2016-12-31 11:16:00 -07:00
parent 35ceb74763
commit d14b375d53
4 changed files with 14 additions and 34 deletions

View File

@@ -2,11 +2,10 @@ function Keyboard()
{
this.listen = function(event)
{
console.log(event.keyCode);
console.log(event);
switch (event.keyCode) {
case 65 : dotgrid.draw_arc_a(); break;
case 83 : dotgrid.draw_arc_c(); break;
case 65 : dotgrid.draw_arc(event.shiftKey ? "1,1" : "0,1"); break;
case 83 : dotgrid.draw_arc(event.shiftKey ? "1,0" : "0,0"); break;
case 68 : dotgrid.draw_line(); break;
case 70 : dotgrid.reset(); break;
case 71 : dotgrid.erase(); break;