180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
switch (code) {
case SDLK_RETURN:
break;
case SDLK_BACKSPACE:
case SDLK_LEFT:
if (commandbuf.length > 0)
[commandbuf
deleteCharactersInRange:
OFMakeRange(
commandbuf.length - 1, 1)];
resetcomplete();
break;
case SDLK_UP:
|
<
|
|
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
switch (code) {
case SDLK_RETURN:
break;
case SDLK_BACKSPACE:
case SDLK_LEFT:
if (commandbuf.length > 0)
[commandbuf deleteCharactersInRange:
OFMakeRange(
commandbuf.length - 1, 1)];
resetcomplete();
break;
case SDLK_UP:
|
273
274
275
276
277
278
279
280
281
|
void
writebinds(OFStream *stream)
{
for (KeyMapping *mapping in keyMappings)
if (mapping.action.length > 0)
[stream writeFormat:@"bind \"%@\" [%@]\n", mapping.name,
mapping.action];
}
|
|
|
272
273
274
275
276
277
278
279
280
|
void
writebinds(OFStream *stream)
{
for (KeyMapping *mapping in keyMappings)
if (mapping.action.length > 0)
[stream writeFormat:@"bind \"%@\" [%@]\n", mapping.name,
mapping.action];
}
|