comparison doodle/tk/types.d @ 63:20d6327c4a75

Event progress. Got key press/release working and panning via keyboard.
author daveb
date Thu, 12 Aug 2010 16:35:24 +0930
parents 1b4c9ba58673
children eb5436b47d13
comparison
equal deleted inserted replaced
62:6c3993f4c3eb 63:20d6327c4a75
28 foreach (ref m; modifiers) { 28 foreach (ref m; modifiers) {
29 _bits |= 1 << m; 29 _bits |= 1 << m;
30 } 30 }
31 } 31 }
32 32
33 string toString() const { 33 string toString() {
34 string s; 34 string s;
35 35
36 // FIXME this is terrible 36 // FIXME this is terrible
37 for (int i = 0; i < uint.sizeof * 8; ++i) { 37 for (int i = 0; i < uint.sizeof * 8; ++i) {
38 if (_bits & (1 << i)) { 38 if (_bits & (1 << i)) {