Overview
Comment: | Clean up key mapping |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
31ef5be209e12c2b31695e15653e093d |
User & Date: | js on 2025-03-05 22:24:16 |
Other Links: | manifest | tags |
Context
2025-03-05
| ||
22:25 | Merge accidental fork check-in: 7cfa53cdf1 user: js tags: trunk | |
22:24 | Clean up key mapping check-in: 31ef5be209 user: js tags: trunk | |
21:55 | Clean up console output functions check-in: 003b06901f user: js tags: trunk | |
Changes
Modified src/Cube.mm from [398e5608de] to [00adf80d1c].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | - | // main.cpp: initialisation & main loop #include "cube.h" OF_APPLICATION_DELEGATE(Cube) VARF(gamespeed, 10, 100, 1000, if (multiplayer()) gamespeed = 100); VARP(minmillis, 0, 5, 1000); @implementation Cube { int _width, _height; |
︙ |
Modified src/client.mm from [733d35b36f] to [b809582588].
︙ | |||
73 74 75 76 77 78 79 | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | - + - + + | @autoreleasepool { strn0cpy(player1->team, name.UTF8String, 5); } } COMMANDN(team, newteam, ARG_1STR) void |
︙ |
Modified src/command.mm from [931e4eb08f] to [c9d2804930].
︙ | |||
581 582 583 584 585 586 587 | 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 | + + + - - + + + + + + + - - - - - - + + + + + + + + + - - + + + - - - + + + + - - - + + + - + - + | } } } void writecfg() { OFStream *stream; @try { OFIRI *IRI = [Cube.sharedInstance.userDataIRI |
︙ |
Modified src/console.mm from [ea51019800] to [20418af9a4].
︙ | |||
89 90 91 92 93 94 95 | 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | + + + + - - - - - - + + + + + + + + + + + + + + + + + - - - + - - + + + + + + - + - - - - + + + - - - + - + + | draw_text(refs[j], FONTH / 3, (FONTH / 4 * 5) * (nd - j - 1) + FONTH / 3, 2); }; }; // keymap is defined externally in keymap.cfg @interface KeyMapping : OFObject @property (readonly) int code; @property (readonly, nonatomic) OFString *name; @property (copy, nonatomic) OFString *action; |
︙ | |||
240 241 242 243 244 245 246 | 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | - - - - - + + + + + + + - - - - - + + + + - - - + + + + - - + + - + - + - - - - + + + - - + | toserver(commandbuf); }; saycommand(NULL); } else if (code == SDLK_ESCAPE) { saycommand(NULL); }; }; |
Modified src/cube.h from [f1d0278915] to [a3e2530d8c].
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - + | // one big bad include file for the whole engine... nasty! #import <ObjFW/ObjFW.h> #define gamma gamma__ #include <SDL2/SDL.h> #undef gamma #include "tools.h" @interface Cube : OFObject <OFApplicationDelegate> @property (class, readonly, nonatomic) Cube *sharedInstance; @property (readonly, nonatomic) SDL_Window *window; |
︙ |
Modified src/protos.h from [c2d6bbe699] to [caa79545eb].
︙ | |||
17 18 19 20 21 22 23 | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | - + | extern void writecfg(); // console extern void keypress(int code, bool isdown, int cooked); extern void renderconsole(); extern void conoutf(OFConstantString *format, ...); extern char *getcurcommand(); |
︙ | |||
79 80 81 82 83 84 85 | 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | - + | extern void gets2c(); extern void c2sinfo(dynent *d); extern void neterr(OFString *s); extern void initclientnet(); extern bool netmapstart(); extern int getclientnum(); extern void changemapserv(char *name, int mode); |
︙ |