Debian Codegraph @

src/pt2_keyboard.c

raw symbols SCIP
1 // for finding memory leaks in debug mode with Visual Studio cxx . . $ `<file>/src/pt2_keyboard.c`/
2 #if defined _DEBUG && defined _MSC_VER
3 #include <crtdbg.h>
4 #endif
5
6 #include <stdio.h>
7 #include <stdint.h>
8 #include <stdbool.h>
9 #include <string.h>
10 #include <ctype.h> // tolower()
11 #ifdef _WIN32
12 #include <windows.h>
13 #else
14 #include <unistd.h>
15 #endif
16 #include "pt2_textout.h"cxx . . $ `<file>/src/pt2_textout.h`/
17 #include "pt2_helpers.h"cxx . . $ `<file>/src/pt2_helpers.h`/
18 #include "pt2_visuals.h"cxx . . $ `<file>/src/pt2_visuals.h`/
19 #include "pt2_diskop.h"cxx . . $ `<file>/src/pt2_diskop.h`/
20 #include "pt2_edit.h"cxx . . $ `<file>/src/pt2_edit.h`/
21 #include "pt2_sampler.h"cxx . . $ `<file>/src/pt2_sampler.h`/
22 #include "pt2_audio.h"cxx . . $ `<file>/src/pt2_audio.h`/
23 #include "pt2_tables.h"cxx . . $ `<file>/src/pt2_tables.h`/
24 #include "pt2_module_saver.h"cxx . . $ `<file>/src/pt2_module_saver.h`/
25 #include "pt2_sample_saver.h"cxx . . $ `<file>/src/pt2_sample_saver.h`/
26 #include "pt2_config.h"cxx . . $ `<file>/src/pt2_config.h`/
27 #include "pt2_sampling.h"cxx . . $ `<file>/src/pt2_sampling.h`/
28 #include "pt2_chordmaker.h"cxx . . $ `<file>/src/pt2_chordmaker.h`/
29 #include "pt2_askbox.h"cxx . . $ `<file>/src/pt2_askbox.h`/
30 #include "pt2_replayer.h"cxx . . $ `<file>/src/pt2_replayer.h`/
31 #include "pt2_posed.h"cxx . . $ `<file>/src/pt2_posed.h`/
32 #include "pt2_textedit.h"cxx . . $ `<file>/src/pt2_textedit.h`/
33
34 #if defined _WIN32 && !defined _DEBUG
35 extern bool windowsKeyIsDown;
36 extern HHOOK g_hKeyboardHook;
37 #endif
38
39 static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! handleGeneralModescxx . . $ handleGeneralModes(701ccd9e525c23ba).(SDL_Scancodecxx . . $ SDL_Scancode# scancode);
40 static void movePatCurPrevChcxx . . $ movePatCurPrevCh(49f6e7a06ebc5aa8).(void);
41 static void movePatCurNextChcxx . . $ movePatCurNextCh(49f6e7a06ebc5aa8).(void);
42 static void movePatCurRightcxx . . $ movePatCurRight(49f6e7a06ebc5aa8).(void);
43 static void movePatCurLeftcxx . . $ movePatCurLeft(49f6e7a06ebc5aa8).(void);
44
45 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! handleTextEditModecxx . . $ handleTextEditMode(701ccd9e525c23ba).(SDL_Scancodecxx . . $ SDL_Scancode# scancode);
46
47 void readKeyModifierscxx . . $ readKeyModifiers(49f6e7a06ebc5aa8).(void)
48 {
49 const SDL_Keymodcxx . . $ SDL_Keymod# modState = SDL_GetModStatecxx . . $ SDL_GetModState(d49f17f06d681085).();
50
51 keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. = (modState & KMOD_LCTRLcxx . . $ KMOD_LCTRL.) ? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
52 keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. = (modState & KMOD_LALTcxx . . $ KMOD_LALT.) ? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
53 keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed. = (modState & (KMOD_LSHIFTcxx . . $ KMOD_LSHIFT. + KMOD_RSHIFTcxx . . $ KMOD_RSHIFT.)) ? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
54
55 #ifdef __APPLE__
56 keyb.leftCommandPressed = (modState & KMOD_LGUI) ? true : false;
57 #endif
58
59 #if defined _WIN32 && !defined _DEBUG
60 keyb.leftAmigaPressed = windowsKeyIsDown; // Windows: handled in lowLevelKeyboardProc
61 #else
62 keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed. = (modState & KMOD_LGUIcxx . . $ KMOD_LGUI.) ? truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`! : falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
63 #endif
64 }
65
66 #if defined _WIN32 && !defined _DEBUG
67 /* For taking control over the windows key if the program has focus.
68 ** Warning: Don't do this in debug mode, it will completely ruin the keyboard input
69 ** latency (in the OS in general) when the debugger is breaking.
70 */
71 LRESULT CALLBACK lowLevelKeyboardProc(int32_t nCode, WPARAM wParam, LPARAM lParam)
72 {
73 SDL_Window *window = video.window;
74
75 if (nCode == HC_ACTION && window != NULL)
76 {
77 switch (wParam)
78 {
79 case WM_KEYUP:
80 case WM_KEYDOWN:
81 case WM_SYSKEYUP: // needed to prevent stuck Windows key if used with ALT
82 {
83 const bool windowHasFocus = SDL_GetWindowFlags(window) & SDL_WINDOW_INPUT_FOCUS;
84 if (!windowHasFocus)
85 {
86 windowsKeyIsDown = false;
87 break;
88 }
89
90 if (((KBDLLHOOKSTRUCT *)lParam)->vkCode != VK_LWIN)
91 break;
92
93 windowsKeyIsDown = (wParam == WM_KEYDOWN);
94 return 1; // eat keystroke
95 }
96 break;
97
98 default: break;
99 }
100 }
101
102 return CallNextHookEx(g_hKeyboardHook, nCode, wParam, lParam);
103 }
104 #endif
105
106 void keyUpHandlercxx . . $ keyUpHandler(decbd40bd4dd73ad).(SDL_Scancodecxx . . $ SDL_Scancode# scancode)
107 {
108 if (scancode == SDL_SCANCODE_KP_PLUScxx . . $ SDL_SCANCODE_KP_PLUS.)
109 keybcxx . . $ keyb..keypadEnterPressedcxx . . $ keyb_t#keypadEnterPressed. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
110
111 if (scancode == keybcxx . . $ keyb..lastRepKeycxx . . $ keyb_t#lastRepKey.)
112 keybcxx . . $ keyb..lastRepKeycxx . . $ keyb_t#lastRepKey. = SDL_SCANCODE_UNKNOWNcxx . . $ SDL_SCANCODE_UNKNOWN.;
113
114 switch (scancode)
115 {
116 // modifiers shouldn't reset keyb repeat/delay flags & counters
117 case SDL_SCANCODE_LCTRLcxx . . $ SDL_SCANCODE_LCTRL.:
118 case SDL_SCANCODE_RCTRLcxx . . $ SDL_SCANCODE_RCTRL.:
119 case SDL_SCANCODE_LSHIFTcxx . . $ SDL_SCANCODE_LSHIFT.:
120 case SDL_SCANCODE_RSHIFTcxx . . $ SDL_SCANCODE_RSHIFT.:
121 case SDL_SCANCODE_LALTcxx . . $ SDL_SCANCODE_LALT.:
122 case SDL_SCANCODE_RALTcxx . . $ SDL_SCANCODE_RALT.:
123 case SDL_SCANCODE_LGUIcxx . . $ SDL_SCANCODE_LGUI.:
124 case SDL_SCANCODE_RGUIcxx . . $ SDL_SCANCODE_RGUI.:
125 case SDL_SCANCODE_MENUcxx . . $ SDL_SCANCODE_MENU.:
126 case SDL_SCANCODE_MODEcxx . . $ SDL_SCANCODE_MODE.:
127 case SDL_SCANCODE_CAPSLOCKcxx . . $ SDL_SCANCODE_CAPSLOCK.:
128 break;
129
130 default:
131 {
132 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
133 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
134 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. = 0;
135 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
136 }
137 break;
138 }
139 }
140
141 static void incMulticxx . . $ incMulti(ac50b47256ae7414).(uint8_tcxx . . $ uint8_t# slot)
142 {
143 char str[32];
144
145 ASSERTcxx . . $ `src/pt2_header.h:25:9`!(slot < 4);
146 if (editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[slot] == 4)
147 editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[slot] = 1;
148 else
149 editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[slot]++;
150
151 sprintfcxx . . $ sprintf(26c8642d26409d6d).(str, "MULTI=%d-%d-%d-%d", editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[0], editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[1],
152 editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[2], editorcxx . . $ editor..multiModeNextcxx . . $ editor_t#multiModeNext.[3]);
153 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).(str);
154 }
155
156 void keyDownHandlercxx . . $ keyDownHandler(90a138f3be71ee4c).(SDL_Scancodecxx . . $ SDL_Scancode# scancode, SDL_Keycodecxx . . $ SDL_Keycode# keycode)
157 {
158 if (scancode == SDL_SCANCODE_CAPSLOCKcxx . . $ SDL_SCANCODE_CAPSLOCK.)
159 {
160 editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag. ^= 1;
161 return;
162 }
163
164 // kludge: allow certain specific key combos to be repeated with the ctrl key
165 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! nonRepeatAltKeys = keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && scancode != SDL_SCANCODE_DELETEcxx . . $ SDL_SCANCODE_DELETE. && scancode != SDL_SCANCODE_RETURNcxx . . $ SDL_SCANCODE_RETURN.
166 && scancode != SDL_SCANCODE_BACKSPACEcxx . . $ SDL_SCANCODE_BACKSPACE. && scancode != SDL_SCANCODE_BACKSLASHcxx . . $ SDL_SCANCODE_BACKSLASH.
167 && scancode != SDL_SCANCODE_EQUALScxx . . $ SDL_SCANCODE_EQUALS. && scancode != SDL_SCANCODE_MINUScxx . . $ SDL_SCANCODE_MINUS.
168 && scancode < SDL_SCANCODE_1cxx . . $ SDL_SCANCODE_1. && scancode > SDL_SCANCODE_0cxx . . $ SDL_SCANCODE_0.;
169
170 // kludge: allow certain specific key combos to be repeated with the alt key
171 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! nonRepeatCtrlKeys = keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. && scancode != SDL_SCANCODE_DELETEcxx . . $ SDL_SCANCODE_DELETE. && scancode != SDL_SCANCODE_RETURNcxx . . $ SDL_SCANCODE_RETURN.
172 && scancode != SDL_SCANCODE_BACKSPACEcxx . . $ SDL_SCANCODE_BACKSPACE.;
173
174 // these keys should not allow to be repeated in keyrepeat mode (caps lock)
175 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! dontRepeatReturnAndBackspace = !uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag. && (scancode == SDL_SCANCODE_RETURNcxx . . $ SDL_SCANCODE_RETURN. || scancode == SDL_SCANCODE_BACKSPACEcxx . . $ SDL_SCANCODE_BACKSPACE.);
176 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! nonRepeatKeys = keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed. || nonRepeatAltKeys || nonRepeatCtrlKeys
177 || scancode == SDL_SCANCODE_LEFTcxx . . $ SDL_SCANCODE_LEFT. || scancode == SDL_SCANCODE_RIGHTcxx . . $ SDL_SCANCODE_RIGHT.
178 || scancode == SDL_SCANCODE_UPcxx . . $ SDL_SCANCODE_UP. || scancode == SDL_SCANCODE_DOWNcxx . . $ SDL_SCANCODE_DOWN.
179 || dontRepeatReturnAndBackspace;
180 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag. && scancode == keybcxx . . $ keyb..lastRepKeycxx . . $ keyb_t#lastRepKey. && nonRepeatKeys)
181 return;
182
183 if (scancode == SDL_SCANCODE_KP_PLUScxx . . $ SDL_SCANCODE_KP_PLUS.)
184 keybcxx . . $ keyb..keypadEnterPressedcxx . . $ keyb_t#keypadEnterPressed. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
185
186 // TOGGLE FULLSCREEN (should always react)
187 if (scancode == SDL_SCANCODE_F11cxx . . $ SDL_SCANCODE_F11. && !keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
188 {
189 toggleFullscreencxx . . $ toggleFullscreen(49f6e7a06ebc5aa8).();
190 return;
191 }
192
193 // don't handle input if an error message wait is active or if an unknown key is passed
194 if ((editorcxx . . $ editor..errorMsgActivecxx . . $ editor_t#errorMsgActive. && editorcxx . . $ editor..errorMsgBlockcxx . . $ editor_t#errorMsgBlock.) || scancode == SDL_SCANCODE_UNKNOWNcxx . . $ SDL_SCANCODE_UNKNOWN.)
195 return;
196
197 // if no ALT/SHIFT/CTRL/AMIGA, update last key for repeat routine
198 if (scancode != SDL_SCANCODE_LALTcxx . . $ SDL_SCANCODE_LALT. && scancode != SDL_SCANCODE_RALTcxx . . $ SDL_SCANCODE_RALT. &&
199 scancode != SDL_SCANCODE_LCTRLcxx . . $ SDL_SCANCODE_LCTRL. && scancode != SDL_SCANCODE_RCTRLcxx . . $ SDL_SCANCODE_RCTRL. &&
200 scancode != SDL_SCANCODE_LSHIFTcxx . . $ SDL_SCANCODE_LSHIFT. && scancode != SDL_SCANCODE_RSHIFTcxx . . $ SDL_SCANCODE_RSHIFT. &&
201 scancode != SDL_SCANCODE_LGUIcxx . . $ SDL_SCANCODE_LGUI. && scancode != SDL_SCANCODE_RGUIcxx . . $ SDL_SCANCODE_RGUI. &&
202 scancode != SDL_SCANCODE_MENUcxx . . $ SDL_SCANCODE_MENU. && scancode != SDL_SCANCODE_MODEcxx . . $ SDL_SCANCODE_MODE. &&
203 scancode != SDL_SCANCODE_CAPSLOCKcxx . . $ SDL_SCANCODE_CAPSLOCK. && scancode != SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
204 {
205 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
206 {
207 // if Repeat Flag, repeat all keys
208 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
209 {
210 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
211 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. = 0;
212 }
213
214 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
215 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
216 }
217
218 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
219 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. = 0;
220
221 keybcxx . . $ keyb..lastRepKeycxx . . $ keyb_t#lastRepKey. = scancode;
222 }
223
224
225 // ENTRY JUMPING IN DISK OP. FILELIST
226 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed. && !uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag.)
227 {
228 if (keycode >= 32 && keycode <= 126)
229 {
230 handleEntryJumpingcxx . . $ handleEntryJumping(d4f767463ce0a6b3).(keycode);
231 return;
232 }
233 }
234
235 // XXX: This really needs some refactoring, it's messy and not logical
236
237 if (!handleGeneralModescxx . . $ handleGeneralModes(701ccd9e525c23ba).(scancode)) return;
238 if (!handleTextEditModecxx . . $ handleTextEditMode(701ccd9e525c23ba).(scancode)) return;
239 if (uicxx . . $ ui..samplerVolBoxShowncxx . . $ ui_t#samplerVolBoxShown. || uicxx . . $ ui..samplingBoxShowncxx . . $ ui_t#samplingBoxShown.) return;
240
241 if (uicxx . . $ ui..samplerFiltersBoxShowncxx . . $ ui_t#samplerFiltersBoxShown.)
242 {
243 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
244 return;
245 }
246
247 // GENERAL KEYS
248 switch (scancode)
249 {
250 case SDL_SCANCODE_NONUSBACKSLASHcxx . . $ SDL_SCANCODE_NONUSBACKSLASH.: turnOffVoicescxx . . $ turnOffVoices(49f6e7a06ebc5aa8).(); break; // magic "kill all voices" button
251
252 case SDL_SCANCODE_APOSTROPHEcxx . . $ SDL_SCANCODE_APOSTROPHE.:
253 {
254 if (editorcxx . . $ editor..autoInsFlagcxx . . $ editor_t#autoInsFlag.)
255 {
256 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
257 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. -= 4;
258 else
259 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot.--;
260
261 if (editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. < 0)
262 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. = 0;
263
264 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
265 }
266 }
267 break;
268
269 case SDL_SCANCODE_BACKSLASHcxx . . $ SDL_SCANCODE_BACKSLASH.:
270 {
271 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
272 {
273 if (handleSpecialKeyscxx . . $ handleSpecialKeys(701ccd9e525c23ba).(scancode) && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
274 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd.) & 63);
275 }
276 else
277 {
278 if (editorcxx . . $ editor..autoInsFlagcxx . . $ editor_t#autoInsFlag.)
279 {
280 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
281 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. += 4;
282 else
283 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot.++;
284
285 if (editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. > 9)
286 editorcxx . . $ editor..autoInsSlotcxx . . $ editor_t#autoInsSlot. = 9;
287 }
288 else
289 {
290 editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. = (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. + 1) % 3;
291 }
292
293 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
294 }
295 }
296 break;
297
298 #ifdef __APPLE__
299 case SDL_SCANCODE_RGUI:
300 #else
301 case SDL_SCANCODE_RALTcxx . . $ SDL_SCANCODE_RALT.:
302 #endif
303 {
304 // right Amiga key on Amiga keyb
305 if (!uicxx . . $ ui..askBoxShowncxx . . $ ui_t#askBoxShown.)
306 {
307 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
308 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
309 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
310 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
311 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
312 }
313 }
314 break;
315
316 #ifdef __APPLE__
317 case SDL_SCANCODE_RALT:
318 #else
319 case SDL_SCANCODE_RCTRLcxx . . $ SDL_SCANCODE_RCTRL.:
320 #endif
321 {
322 // right alt on Amiga keyb
323 if (!uicxx . . $ ui..askBoxShowncxx . . $ ui_t#askBoxShown.)
324 {
325 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
326 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
327 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
328 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
329 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
330 }
331 }
332 break;
333
334 case SDL_SCANCODE_RSHIFTcxx . . $ SDL_SCANCODE_RSHIFT.:
335 {
336 // right shift on Amiga keyb
337 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && !uicxx . . $ ui..askBoxShowncxx . . $ ui_t#askBoxShown.)
338 {
339 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
340 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
341 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
342 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
343 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
344 }
345 }
346 break;
347
348 case SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.:
349 {
350 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
351 {
352 uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
353 displayMainScreencxx . . $ displayMainScreen(49f6e7a06ebc5aa8).();
354 }
355 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
356 {
357 uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
358 displayMainScreencxx . . $ displayMainScreen(49f6e7a06ebc5aa8).();
359 }
360 else if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
361 {
362 exitFromSamcxx . . $ exitFromSam(49f6e7a06ebc5aa8).();
363 }
364 else if (uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown.)
365 {
366 uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
367 displayMainScreencxx . . $ displayMainScreen(49f6e7a06ebc5aa8).();
368 }
369 else
370 {
371 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "REALLY QUIT ?"))
372 {
373 uicxx . . $ ui..throwExitcxx . . $ ui_t#throwExit. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
374 return;
375 }
376 }
377
378 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
379 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
380 }
381 break;
382
383 case SDL_SCANCODE_INSERTcxx . . $ SDL_SCANCODE_INSERT.:
384 {
385 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
386 {
387 samplerSamPastecxx . . $ samplerSamPaste(49f6e7a06ebc5aa8).();
388 return;
389 }
390 }
391 break;
392
393 case SDL_SCANCODE_PAGEUPcxx . . $ SDL_SCANCODE_PAGEUP.:
394 {
395 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
396 {
397 posEdPageUpcxx . . $ posEdPageUp(49f6e7a06ebc5aa8).();
398 }
399 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
400 {
401 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. -= DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`! - 1;
402 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. < 0)
403 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = 0;
404
405 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
406 }
407 else
408 {
409 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
410 {
411 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. == 63)
412 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 15);
413 else if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. == 15)
414 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., 0); // 15-16 would turn into -1, which is "DON'T SET ROW" flag
415 else
416 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 16);
417 }
418 }
419
420 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
421 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
422
423 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
424 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
425 }
426 break;
427
428 case SDL_SCANCODE_PAGEDOWNcxx . . $ SDL_SCANCODE_PAGEDOWN.:
429 {
430 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
431 {
432 posEdPageDowncxx . . $ posEdPageDown(49f6e7a06ebc5aa8).();
433 }
434 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
435 {
436 if (diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. > DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
437 {
438 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. += DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!-1;
439 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. > diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
440 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!;
441
442 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
443 }
444 }
445 else
446 {
447 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
448 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 16);
449 }
450
451 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
452 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
453
454 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
455 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
456 }
457 break;
458
459 case SDL_SCANCODE_HOMEcxx . . $ SDL_SCANCODE_HOME.:
460 {
461 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
462 {
463 posEdScrollToTopcxx . . $ posEdScrollToTop(49f6e7a06ebc5aa8).();
464 }
465 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
466 {
467 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. != 0)
468 {
469 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = 0;
470 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
471 }
472 }
473 else
474 {
475 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
476 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., 0);
477 }
478 }
479 break;
480
481 case SDL_SCANCODE_ENDcxx . . $ SDL_SCANCODE_END.:
482 {
483 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
484 {
485 posEdScrollToBottomcxx . . $ posEdScrollToBottom(49f6e7a06ebc5aa8).();
486 }
487 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
488 {
489 if (diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. > DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
490 {
491 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. - DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!;
492 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
493 }
494 }
495 else
496 {
497 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
498 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., 63);
499 }
500 }
501 break;
502
503 case SDL_SCANCODE_DELETEcxx . . $ SDL_SCANCODE_DELETE.:
504 {
505 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
506 samplerSamDeletecxx . . $ samplerSamDelete(ac50b47256ae7414).(NO_SAMPLE_CUTcxx . . $ NO_SAMPLE_CUT.);
507 else
508 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
509 }
510 break;
511
512 case SDL_SCANCODE_F12cxx . . $ SDL_SCANCODE_F12.:
513 {
514 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
515 {
516 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! audioWasntLocked = !audiocxx . . $ audio..lockedcxx . . $ audio_t#locked.;
517 if (audioWasntLocked)
518 lockAudiocxx . . $ lockAudio(49f6e7a06ebc5aa8).();
519
520 editorcxx . . $ editor..timingModecxx . . $ editor_t#timingMode. ^= 1;
521 updateReplayerTimingModecxx . . $ updateReplayerTimingMode(49f6e7a06ebc5aa8).();
522
523 if (editorcxx . . $ editor..timingModecxx . . $ editor_t#timingMode. == TEMPO_MODE_VBLANKcxx . . $ TEMPO_MODE_VBLANK.)
524 {
525 editorcxx . . $ editor..oldTempocxx . . $ editor_t#oldTempo. = songcxx . . $ song.->currBPMcxx . . $ module_t#currBPM.;
526 modSetTempocxx . . $ modSetTempo(918ebd27a9ddbad3).(125, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
527 }
528 else
529 {
530 modSetTempocxx . . $ modSetTempo(918ebd27a9ddbad3).(editorcxx . . $ editor..oldTempocxx . . $ editor_t#oldTempo., falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
531 }
532
533 if (audioWasntLocked)
534 unlockAudiocxx . . $ unlockAudio(49f6e7a06ebc5aa8).();
535
536 uicxx . . $ ui..updateSongTimingcxx . . $ ui_t#updateSongTiming. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
537 }
538 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
539 {
540 toggleAmigaPanModecxx . . $ toggleAmigaPanMode(49f6e7a06ebc5aa8).();
541 }
542 else
543 {
544 toggleAmigaFilterModelcxx . . $ toggleAmigaFilterModel(49f6e7a06ebc5aa8).();
545 }
546 }
547 break;
548
549 case SDL_SCANCODE_RETURNcxx . . $ SDL_SCANCODE_RETURN.:
550 {
551 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. || keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
552 {
553 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
554 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && !keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
555 {
556 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. < 63)
557 {
558 for (int32_tcxx . . $ int32_t# i = 0; i < PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!; i++)
559 {
560 int32_tcxx . . $ int32_t# j;
561 for (j = 62; j >= songcxx . . $ song.->currRowcxx . . $ module_t#currRow.; j--)
562 {
563 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(j * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + i];
564 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((j + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + i] = *noteSrc;
565 }
566
567 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((j + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + i];
568
569 noteDst->periodcxx . . $ note_t#period. = 0;
570 noteDst->samplecxx . . $ note_t#sample. = 0;
571 noteDst->commandcxx . . $ note_t#command. = 0;
572 noteDst->paramcxx . . $ note_t#param. = 0;
573 }
574
575 songcxx . . $ song.->currRowcxx . . $ module_t#currRow.++;
576
577 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
578 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
579 }
580 }
581 else
582 {
583 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. < 63)
584 {
585 int32_tcxx . . $ int32_t# i;
586 for (i = 62; i >= songcxx . . $ song.->currRowcxx . . $ module_t#currRow.; i--)
587 {
588 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 0) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
589 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
590
591 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
592 {
593 noteDst->commandcxx . . $ note_t#command. = noteSrc->commandcxx . . $ note_t#command.;
594 noteDst->paramcxx . . $ note_t#param. = noteSrc->paramcxx . . $ note_t#param.;
595 }
596 else
597 {
598 *noteDst = *noteSrc;
599 }
600 }
601
602 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
603
604 if (!keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
605 {
606 noteDst->periodcxx . . $ note_t#period. = 0;
607 noteDst->samplecxx . . $ note_t#sample. = 0;
608 }
609
610 noteDst->commandcxx . . $ note_t#command. = 0;
611 noteDst->paramcxx . . $ note_t#param. = 0;
612
613 songcxx . . $ song.->currRowcxx . . $ module_t#currRow.++;
614
615 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
616 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
617 }
618 }
619 }
620 else
621 {
622 const boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! audioWasntLocked = !audiocxx . . $ audio..lockedcxx . . $ audio_t#locked.;
623 if (audioWasntLocked)
624 lockAudiocxx . . $ lockAudio(49f6e7a06ebc5aa8).();
625
626 editorcxx . . $ editor..stepPlayEnabledcxx . . $ editor_t#stepPlayEnabled. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
627 editorcxx . . $ editor..stepPlayBackwardscxx . . $ editor_t#stepPlayBackwards. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
628
629 editorcxx . . $ editor..stepPlayLastModecxx . . $ editor_t#stepPlayLastMode. = editorcxx . . $ editor..currModecxx . . $ editor_t#currMode.;
630
631 if (configcxx . . $ config..keepEditModeAfterStepPlaycxx . . $ config_t#keepEditModeAfterStepPlay. && editorcxx . . $ editor..stepPlayLastModecxx . . $ editor_t#stepPlayLastMode. == MODE_EDITcxx . . $ MODE_EDIT.)
632 doStopItcxx . . $ doStopIt(b45ddcbc8423892c).(falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!);
633 else
634 doStopItcxx . . $ doStopIt(b45ddcbc8423892c).(truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
635
636 playPatterncxx . . $ playPattern(4af4fd0e2b26c4ac).(songcxx . . $ song.->currRowcxx . . $ module_t#currRow.);
637
638 if (configcxx . . $ config..keepEditModeAfterStepPlaycxx . . $ config_t#keepEditModeAfterStepPlay. && editorcxx . . $ editor..stepPlayLastModecxx . . $ editor_t#stepPlayLastMode. == MODE_EDITcxx . . $ MODE_EDIT.)
639 {
640 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
641 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
642 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_EDITcxx . . $ MODE_EDIT.;
643 }
644
645 if (audioWasntLocked)
646 unlockAudiocxx . . $ unlockAudio(49f6e7a06ebc5aa8).();
647 }
648 }
649 break;
650
651 // toggle between IDLE and EDIT (IDLE if PLAY)
652 case SDL_SCANCODE_SPACEcxx . . $ SDL_SCANCODE_SPACE.:
653 {
654 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_PLAYcxx . . $ MODE_PLAY.)
655 {
656 modStopcxx . . $ modStop(49f6e7a06ebc5aa8).();
657 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_IDLEcxx . . $ MODE_IDLE.;
658 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_IDLEcxx . . $ POINTER_MODE_IDLE., DO_CARRYcxx . . $ DO_CARRY.);
659 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
660 }
661 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_RECORDcxx . . $ MODE_RECORD.)
662 {
663 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
664 {
665 modStopcxx . . $ modStop(49f6e7a06ebc5aa8).();
666 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_IDLEcxx . . $ MODE_IDLE.;
667 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_IDLEcxx . . $ POINTER_MODE_IDLE., DO_CARRYcxx . . $ DO_CARRY.);
668 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
669 }
670 }
671 else
672 {
673 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
674 {
675 modStopcxx . . $ modStop(49f6e7a06ebc5aa8).();
676 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_EDITcxx . . $ MODE_EDIT.;
677 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
678 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
679 }
680 }
681 }
682 break;
683
684 case SDL_SCANCODE_F1cxx . . $ SDL_SCANCODE_F1.: editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_LOWcxx . . $ OCTAVE_LOW.; break;
685 case SDL_SCANCODE_F2cxx . . $ SDL_SCANCODE_F2.: editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_HIGHcxx . . $ OCTAVE_HIGH.; break;
686
687 case SDL_SCANCODE_F3cxx . . $ SDL_SCANCODE_F3.:
688 {
689 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
690 {
691 samplerSamDeletecxx . . $ samplerSamDelete(ac50b47256ae7414).(SAMPLE_CUTcxx . . $ SAMPLE_CUT.);
692 }
693 else
694 {
695 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
696 {
697 // cut channel and put in buffer
698 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
699
700 note_tcxx . . $ note_t# *noteDst = editorcxx . . $ editor..trackBuffercxx . . $ editor_t#trackBuffer.;
701 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
702 {
703 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
704 *noteDst++ = *noteSrc;
705
706 noteSrc->periodcxx . . $ note_t#period. = 0;
707 noteSrc->samplecxx . . $ note_t#sample. = 0;
708 noteSrc->commandcxx . . $ note_t#command. = 0;
709 noteSrc->paramcxx . . $ note_t#param. = 0;
710 }
711
712 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
713 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
714 }
715 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
716 {
717 // cut pattern and put in buffer
718 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
719
720 memcpycxx . . $ memcpy(cc817cb175f282d).(editorcxx . . $ editor..patternBuffercxx . . $ editor_t#patternBuffer., songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.],
721 sizeof (note_tcxx . . $ note_t#) * (PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`! * MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!));
722
723 memsetcxx . . $ memset(d1de1e4fb215f1c6).(songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.], 0,
724 sizeof (note_tcxx . . $ note_t#) * (PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`! * MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!));
725
726 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
727 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
728 }
729 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
730 {
731 // cut channel commands and put in buffer
732 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
733
734 note_tcxx . . $ note_t# *noteDst = editorcxx . . $ editor..cmdsBuffercxx . . $ editor_t#cmdsBuffer.;
735 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
736 {
737 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
738 *noteDst++ = *noteSrc;
739
740 noteSrc->commandcxx . . $ note_t#command. = 0;
741 noteSrc->paramcxx . . $ note_t#param. = 0;
742 }
743
744 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
745 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
746 }
747 }
748 }
749 break;
750
751 case SDL_SCANCODE_F4cxx . . $ SDL_SCANCODE_F4.:
752 {
753 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
754 {
755 samplerSamCopycxx . . $ samplerSamCopy(49f6e7a06ebc5aa8).();
756 }
757 else
758 {
759 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
760 {
761 // copy channel to buffer
762
763 note_tcxx . . $ note_t# *noteDst = editorcxx . . $ editor..trackBuffercxx . . $ editor_t#trackBuffer.;
764 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
765 *noteDst++ = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
766 }
767 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
768 {
769 // copy pattern to buffer
770
771 memcpycxx . . $ memcpy(cc817cb175f282d).(editorcxx . . $ editor..patternBuffercxx . . $ editor_t#patternBuffer., songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.],
772 sizeof (note_tcxx . . $ note_t#) * (PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`! * MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!));
773 }
774 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
775 {
776 // copy channel commands to buffer
777
778 note_tcxx . . $ note_t# *noteDst = editorcxx . . $ editor..cmdsBuffercxx . . $ editor_t#cmdsBuffer.;
779 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
780 {
781 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
782 noteDst->commandcxx . . $ note_t#command. = noteSrc->commandcxx . . $ note_t#command.;
783 noteDst->paramcxx . . $ note_t#param. = noteSrc->paramcxx . . $ note_t#param.;
784
785 noteDst++;
786 }
787 }
788 }
789 }
790 break;
791
792 case SDL_SCANCODE_F5cxx . . $ SDL_SCANCODE_F5.:
793 {
794 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
795 {
796 samplerSamPastecxx . . $ samplerSamPaste(49f6e7a06ebc5aa8).();
797 }
798 else
799 {
800 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
801 {
802 // paste channel buffer to channel
803 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
804
805 note_tcxx . . $ note_t# *noteSrc = editorcxx . . $ editor..trackBuffercxx . . $ editor_t#trackBuffer.;
806 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
807 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] = *noteSrc++;
808
809 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
810 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
811 }
812 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
813 {
814 // paste pattern buffer to pattern
815 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
816
817 memcpycxx . . $ memcpy(cc817cb175f282d).(songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.],
818 editorcxx . . $ editor..patternBuffercxx . . $ editor_t#patternBuffer., sizeof (note_tcxx . . $ note_t#) * (PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`! * MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!));
819
820 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
821 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
822 }
823 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
824 {
825 // paste channel commands buffer to channel
826 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
827
828 note_tcxx . . $ note_t# *noteSrc = editorcxx . . $ editor..cmdsBuffercxx . . $ editor_t#cmdsBuffer.;
829 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
830 {
831 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
832 noteDst->commandcxx . . $ note_t#command. = noteSrc->commandcxx . . $ note_t#command.;
833 noteDst->paramcxx . . $ note_t#param. = noteSrc->paramcxx . . $ note_t#param.;
834
835 noteSrc++;
836 }
837
838 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
839 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
840 }
841 }
842 }
843 break;
844
845 case SDL_SCANCODE_F6cxx . . $ SDL_SCANCODE_F6.:
846 {
847 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
848 {
849 editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
850 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POSITION SET");
851 }
852 else
853 {
854 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
855 {
856 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
857 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos.);
858
859 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
860 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
861 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
862 }
863 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
864 {
865 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
866 {
867 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
868 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos.);
869
870 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
871 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
872 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
873 }
874 }
875 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
876 {
877 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
878 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos.);
879
880 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
881 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
882 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
883 }
884 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
885 {
886 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos.);
887 }
888 }
889 }
890 break;
891
892 case SDL_SCANCODE_F7cxx . . $ SDL_SCANCODE_F7.:
893 {
894 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
895 {
896 editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
897 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POSITION SET");
898 }
899 else
900 {
901 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
902 {
903 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
904 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos.);
905
906 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
907 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
908 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
909 }
910 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
911 {
912 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
913 {
914 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
915 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos.);
916
917 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
918 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
919 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
920 }
921 }
922 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
923 {
924 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
925 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos.);
926
927 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
928 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
929 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
930 }
931 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
932 {
933 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos.);
934 }
935 }
936 }
937 break;
938
939 case SDL_SCANCODE_F8cxx . . $ SDL_SCANCODE_F8.:
940 {
941 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
942 {
943 editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
944 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POSITION SET");
945 }
946 else
947 {
948 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
949 {
950 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
951 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos.);
952
953 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
954 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
955 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
956 }
957 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
958 {
959 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
960 {
961 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
962 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos.);
963
964 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
965 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
966 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
967 }
968 }
969 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
970 {
971 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
972 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos.);
973
974 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
975 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
976 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
977 }
978 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
979 {
980 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos.);
981 }
982 }
983 }
984 break;
985
986 case SDL_SCANCODE_F9cxx . . $ SDL_SCANCODE_F9.:
987 {
988 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
989 {
990 editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
991 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POSITION SET");
992 }
993 else
994 {
995 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
996 {
997 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
998 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos.);
999
1000 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
1001 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
1002 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1003 }
1004 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1005 {
1006 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
1007 {
1008 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
1009 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos.);
1010
1011 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
1012 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
1013 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1014 }
1015 }
1016 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1017 {
1018 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
1019 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos.);
1020
1021 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
1022 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
1023 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1024 }
1025 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
1026 {
1027 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos.);
1028 }
1029 }
1030 }
1031 break;
1032
1033 case SDL_SCANCODE_F10cxx . . $ SDL_SCANCODE_F10.:
1034 {
1035 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1036 {
1037 editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
1038 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POSITION SET");
1039 }
1040 else
1041 {
1042 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1043 {
1044 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
1045 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos.);
1046
1047 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
1048 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
1049 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1050 }
1051 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1052 {
1053 if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
1054 {
1055 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_PATTERNcxx . . $ PLAY_MODE_PATTERN.;
1056 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern., DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos.);
1057
1058 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_RECORDcxx . . $ MODE_RECORD.;
1059 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_EDITcxx . . $ POINTER_MODE_EDIT., DO_CARRYcxx . . $ DO_CARRY.);
1060 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1061 }
1062 }
1063 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1064 {
1065 editorcxx . . $ editor..playModecxx . . $ editor_t#playMode. = PLAY_MODE_NORMALcxx . . $ PLAY_MODE_NORMAL.;
1066 modPlaycxx . . $ modPlay(7b7bc4ff97a2e5fe).(DONT_SET_PATTERNcxx . . $ DONT_SET_PATTERN., songcxx . . $ song.->currPoscxx . . $ module_t#currPos., editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos.);
1067
1068 editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. = MODE_PLAYcxx . . $ MODE_PLAY.;
1069 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_PLAYcxx . . $ POINTER_MODE_PLAY., DO_CARRYcxx . . $ DO_CARRY.);
1070 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
1071 }
1072 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
1073 {
1074 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos.);
1075 }
1076 }
1077 }
1078 break;
1079
1080 case SDL_SCANCODE_F11cxx . . $ SDL_SCANCODE_F11.:
1081 {
1082 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1083 {
1084 configcxx . . $ config..realVuMeterscxx . . $ config_t#realVuMeters. ^= 1;
1085 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).(configcxx . . $ config..realVuMeterscxx . . $ config_t#realVuMeters. ? "VU-METERS: REAL" : "VU-METERS: FAKE");
1086 }
1087 }
1088 break;
1089
1090 case SDL_SCANCODE_TABcxx . . $ SDL_SCANCODE_TAB.:
1091 {
1092 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1093 movePatCurPrevChcxx . . $ movePatCurPrevCh(49f6e7a06ebc5aa8).();
1094 else
1095 movePatCurNextChcxx . . $ movePatCurNextCh(49f6e7a06ebc5aa8).();
1096 }
1097 break;
1098
1099 case SDL_SCANCODE_0cxx . . $ SDL_SCANCODE_0.:
1100 {
1101 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1102 {
1103 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 0;
1104 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 0");
1105 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1106 }
1107 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1108 {
1109 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1110 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[9] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1111 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1112 }
1113 else
1114 {
1115 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1116 }
1117 }
1118 break;
1119
1120 case SDL_SCANCODE_1cxx . . $ SDL_SCANCODE_1.:
1121 {
1122 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1123 {
1124 trackNoteUpcxx . . $ trackNoteUp(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
1125 }
1126 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1127 {
1128 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 1;
1129 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 1");
1130 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1131 }
1132 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1133 {
1134 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1135 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[0] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1136 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1137 }
1138 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. && keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1139 {
1140 incMulticxx . . $ incMulti(ac50b47256ae7414).(0);
1141 }
1142 else
1143 {
1144 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1145 }
1146 }
1147 break;
1148
1149 case SDL_SCANCODE_2cxx . . $ SDL_SCANCODE_2.:
1150 {
1151 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1152 {
1153 pattNoteUpcxx . . $ pattNoteUp(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
1154 }
1155 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1156 {
1157 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 2;
1158 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 2");
1159 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1160 }
1161 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1162 {
1163 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1164 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[1] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1165 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1166 }
1167 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. && keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1168 {
1169 incMulticxx . . $ incMulti(ac50b47256ae7414).(1);
1170 }
1171 else
1172 {
1173 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1174 }
1175 }
1176 break;
1177
1178 case SDL_SCANCODE_3cxx . . $ SDL_SCANCODE_3.:
1179 {
1180 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1181 {
1182 trackNoteUpcxx . . $ trackNoteUp(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
1183 }
1184 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1185 {
1186 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 3;
1187 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 3");
1188 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1189 }
1190 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1191 {
1192 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1193 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[2] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1194 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1195 }
1196 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. && keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1197 {
1198 incMulticxx . . $ incMulti(ac50b47256ae7414).(2);
1199 }
1200 else
1201 {
1202 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1203 }
1204 }
1205 break;
1206
1207 case SDL_SCANCODE_4cxx . . $ SDL_SCANCODE_4.:
1208 {
1209 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1210 {
1211 pattNoteUpcxx . . $ pattNoteUp(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
1212 }
1213 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1214 {
1215 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 4;
1216 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 4");
1217 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1218 }
1219 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1220 {
1221 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1222 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[3] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1223 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1224 }
1225 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. && keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1226 {
1227 incMulticxx . . $ incMulti(ac50b47256ae7414).(3);
1228 }
1229 else
1230 {
1231 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1232 }
1233 }
1234 break;
1235
1236 case SDL_SCANCODE_5cxx . . $ SDL_SCANCODE_5.:
1237 {
1238 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1239 {
1240 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 5;
1241 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 5");
1242 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1243 }
1244 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1245 {
1246 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1247 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[4] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1248 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1249 }
1250 else
1251 {
1252 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1253 }
1254 }
1255 break;
1256
1257 case SDL_SCANCODE_6cxx . . $ SDL_SCANCODE_6.:
1258 {
1259 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1260 {
1261 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 6;
1262 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 6");
1263 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1264 }
1265 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1266 {
1267 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1268 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[5] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1269 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1270 }
1271 else
1272 {
1273 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1274 }
1275 }
1276 break;
1277
1278 case SDL_SCANCODE_7cxx . . $ SDL_SCANCODE_7.:
1279 {
1280 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1281 {
1282 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 7;
1283 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 7");
1284 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1285 }
1286 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1287 {
1288 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1289 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[6] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1290 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1291 }
1292 else
1293 {
1294 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1295 }
1296 }
1297 break;
1298
1299 case SDL_SCANCODE_8cxx . . $ SDL_SCANCODE_8.:
1300 {
1301 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1302 {
1303 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 8;
1304 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 8");
1305 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1306 }
1307 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1308 {
1309 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1310 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[7] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1311 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1312 }
1313 else
1314 {
1315 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1316 }
1317 }
1318 break;
1319
1320 case SDL_SCANCODE_9cxx . . $ SDL_SCANCODE_9.:
1321 {
1322 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1323 {
1324 editorcxx . . $ editor..editMoveAddcxx . . $ editor_t#editMoveAdd. = 9;
1325 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EDITSKIP = 9");
1326 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1327 }
1328 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1329 {
1330 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(songcxx . . $ song.->currRowcxx . . $ module_t#currRow. * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
1331 editorcxx . . $ editor..effectMacroscxx . . $ editor_t#effectMacros.[8] = (noteSrc->commandcxx . . $ note_t#command. << 8) | noteSrc->paramcxx . . $ note_t#param.;
1332 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("COMMAND STORED!");
1333 }
1334 else
1335 {
1336 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1337 }
1338 }
1339 break;
1340
1341 case SDL_SCANCODE_KP_0cxx . . $ SDL_SCANCODE_KP_0.:
1342 {
1343 if (editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. >= 0x10)
1344 {
1345 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1346 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = 0x10-1;
1347 }
1348 else
1349 {
1350 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1351 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = 0x00;
1352 }
1353
1354 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1355 }
1356 break;
1357
1358 case SDL_SCANCODE_KP_1cxx . . $ SDL_SCANCODE_KP_1.:
1359 {
1360 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1361 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 12;
1362
1363 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1364 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1365 {
1366 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1367 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1368 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1369 break;
1370 }
1371
1372 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1373 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1374 }
1375 break;
1376
1377 case SDL_SCANCODE_KP_2cxx . . $ SDL_SCANCODE_KP_2.:
1378 {
1379 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1380 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 13;
1381
1382 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1383 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1384 {
1385 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1386 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1387 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1388 break;
1389 }
1390
1391 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1392 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1393 }
1394 break;
1395
1396 case SDL_SCANCODE_KP_3cxx . . $ SDL_SCANCODE_KP_3.:
1397 {
1398 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1399 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 14;
1400
1401 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1402 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1403 {
1404 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1405 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1406 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1407 break;
1408 }
1409
1410 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1411 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1412 }
1413 break;
1414
1415 case SDL_SCANCODE_KP_4cxx . . $ SDL_SCANCODE_KP_4.:
1416 {
1417 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1418 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 8;
1419
1420 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1421 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1422 {
1423 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1424 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1425 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1426 break;
1427 }
1428
1429 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1430 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1431 }
1432 break;
1433
1434 case SDL_SCANCODE_KP_5cxx . . $ SDL_SCANCODE_KP_5.:
1435 {
1436 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1437 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 9;
1438
1439 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1440 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1441 {
1442 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1443 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1444 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1445 break;
1446 }
1447
1448 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1449 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1450 }
1451 break;
1452
1453 case SDL_SCANCODE_KP_6cxx . . $ SDL_SCANCODE_KP_6.:
1454 {
1455 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1456 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 10;
1457
1458 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1459 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1460 {
1461 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1462 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1463 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1464 break;
1465 }
1466
1467 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1468 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1469 }
1470 break;
1471
1472 case SDL_SCANCODE_KP_7cxx . . $ SDL_SCANCODE_KP_7.:
1473 {
1474 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1475 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 4;
1476
1477 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1478 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1479 {
1480 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1481 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1482 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1483 break;
1484 }
1485
1486 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1487 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1488 }
1489 break;
1490
1491 case SDL_SCANCODE_KP_8cxx . . $ SDL_SCANCODE_KP_8.:
1492 {
1493 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1494 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 5;
1495
1496 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1497 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1498 {
1499 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1500 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1501 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1502 break;
1503 }
1504
1505 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1506 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1507 }
1508 break;
1509
1510 case SDL_SCANCODE_KP_9cxx . . $ SDL_SCANCODE_KP_9.:
1511 {
1512 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1513 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 6;
1514
1515 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1516 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1517 {
1518 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1519 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1520 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1521 break;
1522 }
1523
1524 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1525 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1526 }
1527 break;
1528
1529 case SDL_SCANCODE_KP_ENTERcxx . . $ SDL_SCANCODE_KP_ENTER.:
1530 {
1531 editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. ^= 0x10;
1532
1533 if (editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero.)
1534 {
1535 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = 15;
1536 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1537 }
1538 else
1539 {
1540 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. ^= 0x10;
1541 }
1542
1543 if (editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. == 31) // kludge if sample was 15 (0010 in UI) before key press
1544 {
1545 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = 15;
1546 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. ^= 1;
1547 }
1548
1549 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1550 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1551 {
1552 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1553 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1554 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1555 break;
1556 }
1557
1558 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1559 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1560 }
1561 break;
1562
1563 case SDL_SCANCODE_KP_PLUScxx . . $ SDL_SCANCODE_KP_PLUS.:
1564 {
1565 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1566
1567 // the Amiga numpad has one more key, so we need to use this key for two sample numbers...
1568 if (editorcxx . . $ editor..keypadToggle8CFlagcxx . . $ editor_t#keypadToggle8CFlag.)
1569 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + (0x0C - 1);
1570 else
1571 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + (0x08 - 1);
1572
1573 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1574 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1575 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("INVALID PAD KEY !");
1576
1577 editorcxx . . $ editor..keypadToggle8CFlagcxx . . $ editor_t#keypadToggle8CFlag. ^= 1;
1578 }
1579 break;
1580
1581 case SDL_SCANCODE_KP_MINUScxx . . $ SDL_SCANCODE_KP_MINUS.:
1582 {
1583 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1584 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 3;
1585
1586 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1587 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1588 {
1589 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1590 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1591 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1592 break;
1593 }
1594
1595 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1596 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1597 }
1598 break;
1599
1600 case SDL_SCANCODE_KP_MULTIPLYcxx . . $ SDL_SCANCODE_KP_MULTIPLY.:
1601 {
1602 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1603 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 2;
1604
1605 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1606 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1607 {
1608 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1609 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1610 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1611 break;
1612 }
1613
1614 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1615 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1616 }
1617 break;
1618
1619 case SDL_SCANCODE_KP_DIVIDEcxx . . $ SDL_SCANCODE_KP_DIVIDE.:
1620 {
1621 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1622 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 1;
1623
1624 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1625 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1626 {
1627 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1628 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1629 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1630 break;
1631 }
1632
1633 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1634 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1635 }
1636 break;
1637
1638 case SDL_SCANCODE_NUMLOCKCLEARcxx . . $ SDL_SCANCODE_NUMLOCKCLEAR.:
1639 {
1640 editorcxx . . $ editor..sampleZerocxx . . $ editor_t#sampleZero. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1641 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = editorcxx . . $ editor..hiLowInstrcxx . . $ editor_t#hiLowInstr. + 0;
1642
1643 updateCurrSamplecxx . . $ updateCurrSample(49f6e7a06ebc5aa8).();
1644 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1645 {
1646 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1647
1648 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SELECT NOTE", NO_CARRYcxx . . $ NO_CARRY.);
1649 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
1650
1651 break;
1652 }
1653
1654 if (editorcxx . . $ editor..pNoteFlagcxx . . $ editor_t#pNoteFlag. > 0)
1655 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_SPECIALcxx . . $ EDIT_SPECIAL.);
1656 }
1657 break;
1658
1659 case SDL_SCANCODE_KP_PERIODcxx . . $ SDL_SCANCODE_KP_PERIOD.:
1660 {
1661 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "KILL SAMPLE ?"))
1662 killSamplecxx . . $ killSample(49f6e7a06ebc5aa8).();
1663 }
1664 break;
1665
1666 case SDL_SCANCODE_DOWNcxx . . $ SDL_SCANCODE_DOWN.:
1667 {
1668 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1669 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1670
1671 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1672 {
1673 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
1674 {
1675 int32_tcxx . . $ int32_t# end = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.);
1676 if (end > 0)
1677 {
1678 end--;
1679 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1680 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(end);
1681
1682 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
1683 {
1684 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
1685 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
1686 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
1687 }
1688
1689 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1690 }
1691
1692 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1693 {
1694 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1695 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1696 }
1697 }
1698 }
1699 else
1700 {
1701 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
1702 {
1703 if (diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. > DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
1704 {
1705 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset.++;
1706 if (mousecxx . . $ mouse..rightButtonPressedcxx . . $ mouse_t#rightButtonPressed.) // PT quirk: right mouse button speeds up scrolling even on keyb UP/DOWN
1707 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. += 3;
1708
1709 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. > diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
1710 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!;
1711
1712 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1713 }
1714
1715 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
1716 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
1717
1718 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1719 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1720 }
1721 else if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
1722 {
1723 posEdScrollDowncxx . . $ posEdScrollDown(49f6e7a06ebc5aa8).();
1724
1725 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
1726 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
1727
1728 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1729 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1730 }
1731 else if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
1732 {
1733 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
1734 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 1) & 63);
1735
1736 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1737 }
1738 }
1739 }
1740 break;
1741
1742 case SDL_SCANCODE_UPcxx . . $ SDL_SCANCODE_UP.:
1743 {
1744 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1745 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1746
1747 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1748 {
1749 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
1750 {
1751 int32_tcxx . . $ int32_t# end = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.);
1752 if (end < 313)
1753 {
1754 end++;
1755 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1756 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(end);
1757
1758 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
1759 {
1760 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
1761 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
1762 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
1763 }
1764
1765 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1766 }
1767
1768 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1769 {
1770 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1771 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1772 }
1773 }
1774 }
1775 else
1776 {
1777 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
1778 {
1779 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset.--;
1780 if (mousecxx . . $ mouse..rightButtonPressedcxx . . $ mouse_t#rightButtonPressed.) // PT quirk: right mouse button speeds up scrolling even on keyb UP/DOWN
1781 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. -= 3;
1782
1783 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. < 0)
1784 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = 0;
1785
1786 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1787
1788 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
1789 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
1790
1791 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1792 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1793 }
1794 else if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
1795 {
1796 posEdScrollUpcxx . . $ posEdScrollUp(49f6e7a06ebc5aa8).();
1797
1798 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey.)
1799 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. = 0;
1800
1801 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1802 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1803 }
1804 else if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
1805 {
1806 if ((editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY.) && (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.))
1807 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 1) & 63);
1808
1809 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1810 }
1811 }
1812 }
1813 break;
1814
1815 case SDL_SCANCODE_LEFTcxx . . $ SDL_SCANCODE_LEFT.:
1816 {
1817 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1818 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1819
1820 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1821 {
1822 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
1823 {
1824 int32_tcxx . . $ int32_t# start = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.);
1825 if (start > 0)
1826 {
1827 start--;
1828 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1829 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(start);
1830 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1831 }
1832
1833 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1834 {
1835 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1836 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1837 }
1838 }
1839 }
1840 else
1841 {
1842 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1843 {
1844 sampleDownButtoncxx . . $ sampleDownButton(49f6e7a06ebc5aa8).();
1845 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1846 {
1847 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1848 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1849 }
1850 }
1851 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1852 {
1853 if (songcxx . . $ song.->currPoscxx . . $ module_t#currPos. > 0)
1854 {
1855 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(songcxx . . $ song.->currPoscxx . . $ module_t#currPos. - 1, DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
1856 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1857 {
1858 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1859 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1860 }
1861 }
1862 }
1863 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1864 {
1865 decPattcxx . . $ decPatt(49f6e7a06ebc5aa8).();
1866 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1867 {
1868 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1869 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1870 }
1871 }
1872 else
1873 {
1874 movePatCurLeftcxx . . $ movePatCurLeft(49f6e7a06ebc5aa8).();
1875 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1876 }
1877 }
1878 }
1879 break;
1880
1881 case SDL_SCANCODE_RIGHTcxx . . $ SDL_SCANCODE_RIGHT.:
1882 {
1883 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1884 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1885
1886 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1887 {
1888 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
1889 {
1890 int32_tcxx . . $ int32_t# start = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.);
1891 if (start < 313)
1892 {
1893 start++;
1894 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1895 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(start);
1896
1897 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
1898 {
1899 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
1900 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
1901 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
1902 }
1903
1904 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
1905 }
1906
1907 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1908 {
1909 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1910 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1911 }
1912 }
1913 }
1914 else
1915 {
1916 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1917 {
1918 sampleUpButtoncxx . . $ sampleUpButton(49f6e7a06ebc5aa8).();
1919 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1920 {
1921 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1922 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1923 }
1924 }
1925 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1926 {
1927 if (songcxx . . $ song.->currPoscxx . . $ module_t#currPos. < 126)
1928 {
1929 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(songcxx . . $ song.->currPoscxx . . $ module_t#currPos. + 1, DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
1930 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1931 {
1932 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1933 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1934 }
1935 }
1936 }
1937 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
1938 {
1939 incPattcxx . . $ incPatt(49f6e7a06ebc5aa8).();
1940 if (editorcxx . . $ editor..repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag.)
1941 {
1942 keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1943 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1944 }
1945 }
1946 else
1947 {
1948 movePatCurRightcxx . . $ movePatCurRight(49f6e7a06ebc5aa8).();
1949 keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1950 }
1951 }
1952 }
1953 break;
1954
1955 case SDL_SCANCODE_Acxx . . $ SDL_SCANCODE_A.:
1956 {
1957 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
1958 {
1959 trackOctaUpcxx . . $ trackOctaUp(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
1960 }
1961 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1962 {
1963 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
1964 {
1965 samplerRangeAllcxx . . $ samplerRangeAll(49f6e7a06ebc5aa8).();
1966 }
1967 else
1968 {
1969 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
1970 {
1971 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[0] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1972 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[1] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1973 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[2] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1974 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[3] = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
1975
1976 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1977 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
1978 break;
1979 }
1980
1981 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] ^= 1;
1982 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
1983 }
1984 }
1985 else
1986 {
1987 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
1988 }
1989 }
1990 break;
1991
1992 case SDL_SCANCODE_Bcxx . . $ SDL_SCANCODE_B.:
1993 {
1994 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
1995 {
1996 if (editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
1997 {
1998 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
1999 }
2000 else
2001 {
2002 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2003 editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2004 editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos. = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2005 }
2006
2007 uicxx . . $ ui..updateStatusTextcxx . . $ ui_t#updateStatusText. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2008 }
2009 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2010 {
2011 moduleSample_tcxx . . $ moduleSample_t# *s = &songcxx . . $ song.->samplescxx . . $ module_t#samples.[editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.];
2012 if (s->lengthcxx . . $ moduleSample_t#length. == 0)
2013 {
2014 statusSampleIsEmptycxx . . $ statusSampleIsEmpty(49f6e7a06ebc5aa8).();
2015 break;
2016 }
2017
2018 boostSamplecxx . . $ boostSample(918ebd27a9ddbad3).(editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample., truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
2019
2020 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2021 displaySamplecxx . . $ displaySample(49f6e7a06ebc5aa8).();
2022 }
2023 else
2024 {
2025 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2026 }
2027 }
2028 break;
2029
2030 case SDL_SCANCODE_Ccxx . . $ SDL_SCANCODE_C.:
2031 {
2032 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2033 {
2034 trackOctaDowncxx . . $ trackOctaDown(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
2035 }
2036 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2037 {
2038 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2039 {
2040 samplerSamCopycxx . . $ samplerSamCopy(49f6e7a06ebc5aa8).();
2041 return;
2042 }
2043
2044 if (!editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
2045 {
2046 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("NO BLOCK MARKED !");
2047 return;
2048 }
2049
2050 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2051 editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2052
2053 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
2054 editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i] = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2055
2056 if (editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos. > editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.)
2057 {
2058 editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos. = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2059 editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2060 }
2061 else
2062 {
2063 editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos. = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2064 editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2065 }
2066
2067 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
2068 }
2069 else
2070 {
2071 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2072 {
2073 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[2] ^= 1; // toggle channel 3
2074 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
2075 }
2076 else
2077 {
2078 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2079 }
2080 }
2081 }
2082 break;
2083
2084 case SDL_SCANCODE_Dcxx . . $ SDL_SCANCODE_D.:
2085 {
2086 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2087 {
2088 trackOctaUpcxx . . $ trackOctaUp(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
2089 }
2090 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2091 {
2092 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2093 }
2094 else
2095 {
2096 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2097 {
2098 if (!uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
2099 {
2100 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2101
2102 uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown. ^= 1;
2103 if (!uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
2104 {
2105 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
2106 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
2107 displayMainScreencxx . . $ displayMainScreen(49f6e7a06ebc5aa8).();
2108 }
2109 else
2110 {
2111 uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2112 renderDiskOpScreencxx . . $ renderDiskOpScreen(49f6e7a06ebc5aa8).();
2113 }
2114 }
2115 }
2116 else
2117 {
2118 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2119 }
2120 }
2121 }
2122 break;
2123
2124 case SDL_SCANCODE_Ecxx . . $ SDL_SCANCODE_E.:
2125 {
2126 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2127 {
2128 trackNoteDowncxx . . $ trackNoteDown(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
2129 }
2130 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2131 {
2132 if (!uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown. && !uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
2133 {
2134 if (uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown.)
2135 uicxx . . $ ui..editOpScreencxx . . $ ui_t#editOpScreen. = (uicxx . . $ ui..editOpScreencxx . . $ ui_t#editOpScreen. + 1) % 3;
2136 else
2137 uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2138
2139 renderEditOpScreencxx . . $ renderEditOpScreen(49f6e7a06ebc5aa8).();
2140 }
2141 }
2142 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2143 {
2144 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2145
2146 int32_tcxx . . $ int32_t# j = songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 1;
2147 while (j < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!)
2148 {
2149 int32_tcxx . . $ int32_t# i;
2150 for (i = 62; i >= j; i--)
2151 {
2152 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2153 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] = *noteSrc;
2154 }
2155
2156 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2157 noteDst->periodcxx . . $ note_t#period. = 0;
2158 noteDst->samplecxx . . $ note_t#sample. = 0;
2159 noteDst->commandcxx . . $ note_t#command. = 0;
2160 noteDst->paramcxx . . $ note_t#param. = 0;
2161
2162 j += 2;
2163 }
2164
2165 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2166 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2167 }
2168 else
2169 {
2170 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2171 }
2172 }
2173 break;
2174
2175 case SDL_SCANCODE_Fcxx . . $ SDL_SCANCODE_F.:
2176 {
2177 #ifdef __APPLE__
2178 if (keyb.leftCommandPressed && keyb.leftCtrlPressed)
2179 {
2180 toggleFullscreen();
2181 }
2182 else
2183 #endif
2184 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2185 {
2186 pattOctaUpcxx . . $ pattOctaUp(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2187 }
2188 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2189 {
2190 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2191 {
2192 resetFPSCountercxx . . $ resetFPSCounter(49f6e7a06ebc5aa8).();
2193
2194 videocxx . . $ video..debugcxx . . $ video_t#debug. ^= 1;
2195 if (!videocxx . . $ video..debugcxx . . $ video_t#debug.)
2196 displayMainScreencxx . . $ displayMainScreen(49f6e7a06ebc5aa8).();
2197 }
2198 else
2199 {
2200 toggleLEDFiltercxx . . $ toggleLEDFilter(49f6e7a06ebc5aa8).();
2201
2202 if (audiocxx . . $ audio..ledFilterEnabledcxx . . $ audio_t#ledFilterEnabled.)
2203 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("LED FILTER ON");
2204 else
2205 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("LED FILTER OFF");
2206 }
2207 }
2208 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2209 {
2210 moduleSample_tcxx . . $ moduleSample_t# *s = &songcxx . . $ song.->samplescxx . . $ module_t#samples.[editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.];
2211 if (s->lengthcxx . . $ moduleSample_t#length. == 0)
2212 {
2213 statusSampleIsEmptycxx . . $ statusSampleIsEmpty(49f6e7a06ebc5aa8).();
2214 break;
2215 }
2216
2217 filterSamplecxx . . $ filterSample(918ebd27a9ddbad3).(editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample., truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
2218 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2219 displaySamplecxx . . $ displaySample(49f6e7a06ebc5aa8).();
2220 }
2221 else
2222 {
2223 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2224 }
2225 }
2226 break;
2227
2228 case SDL_SCANCODE_Gcxx . . $ SDL_SCANCODE_G.:
2229 {
2230 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.) // toggle record mode (PT clone and PT2.3E only)
2231 {
2232 editorcxx . . $ editor..recordModecxx . . $ editor_t#recordMode. ^= 1;
2233 if (editorcxx . . $ editor..recordModecxx . . $ editor_t#recordMode. == 0)
2234 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("REC MODE: PATT");
2235 else
2236 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("REC MODE: SONG");
2237
2238 if (uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown. && uicxx . . $ ui..editOpScreencxx . . $ ui_t#editOpScreen. == 1)
2239 uicxx . . $ ui..updateRecordTextcxx . . $ ui_t#updateRecordText. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2240 }
2241 else
2242 {
2243 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2244 }
2245 }
2246 break;
2247
2248 case SDL_SCANCODE_Hcxx . . $ SDL_SCANCODE_H.:
2249 {
2250 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2251 {
2252 if (!editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
2253 {
2254 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("NO BLOCK MARKED !");
2255 return;
2256 }
2257
2258 trackNoteUpcxx . . $ trackNoteUp(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos., editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.);
2259 }
2260 else
2261 {
2262 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2263 }
2264 }
2265 break;
2266
2267 case SDL_SCANCODE_Icxx . . $ SDL_SCANCODE_I.:
2268 {
2269 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2270 {
2271 if (!editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag.)
2272 {
2273 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("BUFFER IS EMPTY !");
2274 return;
2275 }
2276
2277 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. < 63)
2278 {
2279 for (int32_tcxx . . $ int32_t# i = 0; i <= editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.-editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.; i++)
2280 {
2281 for (int32_tcxx . . $ int32_t# j = 62; j >= songcxx . . $ song.->currRowcxx . . $ module_t#currRow.; j--)
2282 {
2283 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(j * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2284 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((j + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] = *noteSrc;
2285 }
2286 }
2287 }
2288
2289 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2290
2291 int32_tcxx . . $ int32_t# i;
2292 for (i = 0; i <= editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.-editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.; i++)
2293 {
2294 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow.+i > 63)
2295 break;
2296
2297 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + i) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.]
2298 = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos. + i];
2299 }
2300
2301 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2302 {
2303 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. += i & 0xFF;
2304 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. > 63)
2305 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. = 0;
2306 }
2307
2308 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2309 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2310 }
2311 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2312 {
2313 editorcxx . . $ editor..autoInsFlagcxx . . $ editor_t#autoInsFlag. ^= 1;
2314 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2315 }
2316 else
2317 {
2318 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2319 }
2320 }
2321 break;
2322
2323 case SDL_SCANCODE_Jcxx . . $ SDL_SCANCODE_J.:
2324 {
2325 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2326 {
2327 if (!editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag.)
2328 {
2329 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("BUFFER IS EMPTY !");
2330 return;
2331 }
2332
2333 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2334
2335 int32_tcxx . . $ int32_t# i = editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.;
2336 int32_tcxx . . $ int32_t# j = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2337 note_tcxx . . $ note_t# *patt = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.];
2338
2339 while (truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!)
2340 {
2341 note_tcxx . . $ note_t# *noteDst = &patt[(j * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2342
2343 if (editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].periodcxx . . $ note_t#period. == 0 && editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].samplecxx . . $ note_t#sample. == 0)
2344 {
2345 noteDst->commandcxx . . $ note_t#command. = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].commandcxx . . $ note_t#command.;
2346 noteDst->paramcxx . . $ note_t#param. = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].paramcxx . . $ note_t#param.;
2347 }
2348 else
2349 {
2350 *noteDst = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i];
2351 }
2352
2353 if (i == editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. || i == 63 || j == 63)
2354 break;
2355
2356 i++;
2357 j++;
2358 }
2359
2360 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2361 {
2362 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. += (editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.-editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.) + 1;
2363 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. > 63)
2364 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. = 0;
2365 }
2366
2367 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2368 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2369 }
2370 else
2371 {
2372 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2373 }
2374 }
2375 break;
2376
2377 case SDL_SCANCODE_Kcxx . . $ SDL_SCANCODE_K.:
2378 {
2379 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2380 {
2381 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
2382 {
2383 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2384 if (noteSrc->samplecxx . . $ note_t#sample. == editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.+1)
2385 {
2386 noteSrc->periodcxx . . $ note_t#period. = 0;
2387 noteSrc->samplecxx . . $ note_t#sample. = 0;
2388 noteSrc->commandcxx . . $ note_t#command. = 0;
2389 noteSrc->paramcxx . . $ note_t#param. = 0;
2390 }
2391 }
2392
2393 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2394 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2395 }
2396 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2397 {
2398 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2399
2400 int32_tcxx . . $ int32_t# i = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2401 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2402 {
2403 // kill to start
2404 while (i >= 0)
2405 {
2406 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2407 noteDst->periodcxx . . $ note_t#period. = 0;
2408 noteDst->samplecxx . . $ note_t#sample. = 0;
2409 noteDst->commandcxx . . $ note_t#command. = 0;
2410 noteDst->paramcxx . . $ note_t#param. = 0;
2411
2412 i--;
2413 }
2414 }
2415 else
2416 {
2417 // kill to end
2418 while (i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!)
2419 {
2420 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2421 noteDst->periodcxx . . $ note_t#period. = 0;
2422 noteDst->samplecxx . . $ note_t#sample. = 0;
2423 noteDst->commandcxx . . $ note_t#command. = 0;
2424 noteDst->paramcxx . . $ note_t#param. = 0;
2425
2426 i++;
2427 }
2428 }
2429
2430 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2431 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2432 }
2433 else
2434 {
2435 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2436 }
2437 }
2438 break;
2439
2440 case SDL_SCANCODE_Lcxx . . $ SDL_SCANCODE_L.:
2441 {
2442 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2443 {
2444 if (!editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
2445 {
2446 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("NO BLOCK MARKED !");
2447 return;
2448 }
2449
2450 trackNoteDowncxx . . $ trackNoteDown(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos., editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.);
2451 }
2452 else
2453 {
2454 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2455 }
2456 }
2457 break;
2458
2459 case SDL_SCANCODE_Mcxx . . $ SDL_SCANCODE_M.:
2460 {
2461 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2462 {
2463 editorcxx . . $ editor..multiFlagcxx . . $ editor_t#multiFlag. ^= 1;
2464 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2465 uicxx . . $ ui..updateKeysTextcxx . . $ ui_t#updateKeysText. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2466 }
2467 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2468 {
2469 if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2470 {
2471 editorcxx . . $ editor..metroChannelcxx . . $ editor_t#metroChannel. = cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. + 1;
2472
2473 if (uicxx . . $ ui..editOpScreenShowncxx . . $ ui_t#editOpScreenShown. && uicxx . . $ ui..editOpScreencxx . . $ ui_t#editOpScreen. == 1)
2474 uicxx . . $ ui..updateMetro2Textcxx . . $ ui_t#updateMetro2Text. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2475 }
2476 else
2477 {
2478 editorcxx . . $ editor..metroFlagcxx . . $ editor_t#metroFlag. ^= 1;
2479 uicxx . . $ ui..updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2480 }
2481 }
2482 else
2483 {
2484 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2485 }
2486 }
2487 break;
2488
2489 case SDL_SCANCODE_Ncxx . . $ SDL_SCANCODE_N.:
2490 {
2491 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2492 {
2493 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2494 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2495 }
2496 else
2497 {
2498 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2499 }
2500 }
2501 break;
2502
2503 case SDL_SCANCODE_Ocxx . . $ SDL_SCANCODE_O.:
2504 {
2505 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2506 {
2507 // fun fact: this function is broken in PT but I fixed it in my clone
2508
2509 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2510
2511 int32_tcxx . . $ int32_t# j = songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 1;
2512 while (j < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!)
2513 {
2514 for (int32_tcxx . . $ int32_t# i = j; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!-1; i++)
2515 {
2516 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][((i + 1) * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2517 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.] = *noteSrc;
2518 }
2519
2520 // clear newly made row on very bottom
2521 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(63 * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2522 noteDst->periodcxx . . $ note_t#period. = 0;
2523 noteDst->samplecxx . . $ note_t#sample. = 0;
2524 noteDst->commandcxx . . $ note_t#command. = 0;
2525 noteDst->paramcxx . . $ note_t#param. = 0;
2526
2527 j++;
2528 }
2529
2530 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2531 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2532 }
2533 else
2534 {
2535 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2536 }
2537 }
2538 break;
2539
2540 case SDL_SCANCODE_Pcxx . . $ SDL_SCANCODE_P.:
2541 {
2542 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2543 {
2544 if (!editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag.)
2545 {
2546 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("BUFFER IS EMPTY !");
2547 return;
2548 }
2549
2550 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2551
2552 int32_tcxx . . $ int32_t# i = editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.;
2553 int32_tcxx . . $ int32_t# j = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2554 note_tcxx . . $ note_t# *patt = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.];
2555
2556 while (truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!)
2557 {
2558 note_tcxx . . $ note_t# *noteDst = &patt[(j * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2559 *noteDst = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i];
2560
2561 if (i == editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. || i == 63 || j == 63)
2562 break;
2563
2564 i++;
2565 j++;
2566 }
2567
2568 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2569 {
2570 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. += (editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.-editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.) + 1;
2571 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. > 63)
2572 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. = 0;
2573 }
2574
2575 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2576 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2577 }
2578 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2579 {
2580 if (!uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
2581 posEdTogglecxx . . $ posEdToggle(49f6e7a06ebc5aa8).();
2582 }
2583 else
2584 {
2585 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2586 }
2587 }
2588 break;
2589
2590 case SDL_SCANCODE_Qcxx . . $ SDL_SCANCODE_Q.:
2591 {
2592 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2593 {
2594 trackNoteDowncxx . . $ trackNoteDown(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
2595 #ifdef __APPLE__
2596 /* On Mac, command+Q sends a quit signal to the program.
2597 ** However, command+Q is also one of the transpose keys in this ProTracker port.
2598 ** Ignore the signal if command+Q was pressed.
2599 */
2600 editor.macCmdQIssued = true;
2601 #endif
2602 }
2603 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2604 {
2605 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[0] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2606 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[1] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2607 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[2] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2608 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[3] = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2609 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
2610 }
2611 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2612 {
2613 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "REALLY QUIT ?"))
2614 uicxx . . $ ui..throwExitcxx . . $ ui_t#throwExit. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2615 }
2616 else
2617 {
2618 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2619 }
2620 }
2621 break;
2622
2623 case SDL_SCANCODE_Rcxx . . $ SDL_SCANCODE_R.:
2624 {
2625 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2626 {
2627 pattNoteDowncxx . . $ pattNoteDown(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2628 }
2629 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2630 {
2631 editorcxx . . $ editor..f6Poscxx . . $ editor_t#f6Pos. = 0;
2632 editorcxx . . $ editor..f7Poscxx . . $ editor_t#f7Pos. = 16;
2633 editorcxx . . $ editor..f8Poscxx . . $ editor_t#f8Pos. = 32;
2634 editorcxx . . $ editor..f9Poscxx . . $ editor_t#f9Pos. = 48;
2635 editorcxx . . $ editor..f10Poscxx . . $ editor_t#f10Pos. = 63;
2636
2637 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("POS RESTORED !");
2638 }
2639 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2640 {
2641 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "RESAMPLE?"))
2642 samplerResamplecxx . . $ samplerResample(49f6e7a06ebc5aa8).();
2643 }
2644 else
2645 {
2646 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2647 }
2648 }
2649 break;
2650
2651 case SDL_SCANCODE_Scxx . . $ SDL_SCANCODE_S.:
2652 {
2653 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2654 {
2655 // if we're in sample load/save mode, set current dir to modules path
2656 if (diskopcxx . . $ diskop..modecxx . . $ diskop_t#mode. == DISKOP_MODE_SMPcxx . . $ DISKOP_MODE_SMP.)
2657 UNICHAR_CHDIRcxx . . $ `src/pt2_unicode.h:36:9`!(editor.modulesPathU);
2658
2659 saveModulecxx . . $ saveModule(f2cb034b043a1ce9).(DONT_CHECK_IF_FILE_EXISTcxx . . $ DONT_CHECK_IF_FILE_EXIST., DONT_GIVE_NEW_FILENAMEcxx . . $ DONT_GIVE_NEW_FILENAME.);
2660
2661 // set current dir to samples path
2662 if (diskopcxx . . $ diskop..modecxx . . $ diskop_t#mode. == DISKOP_MODE_SMPcxx . . $ DISKOP_MODE_SMP.)
2663 UNICHAR_CHDIRcxx . . $ `src/pt2_unicode.h:36:9`!(editor.samplesPathU);
2664 }
2665 else if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2666 {
2667 pattOctaUpcxx . . $ pattOctaUp(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2668 }
2669 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2670 {
2671 samplerScreencxx . . $ samplerScreen(49f6e7a06ebc5aa8).();
2672 }
2673 else
2674 {
2675 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2676 }
2677 }
2678 break;
2679
2680 case SDL_SCANCODE_Tcxx . . $ SDL_SCANCODE_T.:
2681 {
2682 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2683 {
2684 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2685 pointerSetModecxx . . $ pointerSetMode(f2ac3508b56cd10).(POINTER_MODE_MSG1cxx . . $ POINTER_MODE_MSG1., NO_CARRYcxx . . $ NO_CARRY.);
2686 setStatusMessagecxx . . $ setStatusMessage(90ef5b561fbcb8de).("SWAP (1/2/3/4) ?", NO_CARRYcxx . . $ NO_CARRY.);
2687 }
2688 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2689 {
2690 toggleTuningTonecxx . . $ toggleTuningTone(49f6e7a06ebc5aa8).();
2691 }
2692 else
2693 {
2694 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2695 }
2696 }
2697 break;
2698
2699 case SDL_SCANCODE_Ucxx . . $ SDL_SCANCODE_U.:
2700 {
2701 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2702 undoLastChangecxx . . $ undoLastChange(49f6e7a06ebc5aa8).();
2703 else
2704 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2705 }
2706 break;
2707
2708 case SDL_SCANCODE_Vcxx . . $ SDL_SCANCODE_V.:
2709 {
2710 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2711 {
2712 pattOctaDowncxx . . $ pattOctaDown(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2713 }
2714 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2715 {
2716 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2717 {
2718 samplerSamPastecxx . . $ samplerSamPaste(49f6e7a06ebc5aa8).();
2719 }
2720 }
2721 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2722 {
2723 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[3] ^= 1; // toggle channel 4
2724 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
2725 }
2726 else
2727 {
2728 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2729 }
2730 }
2731 break;
2732
2733 case SDL_SCANCODE_Wcxx . . $ SDL_SCANCODE_W.:
2734 {
2735 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2736 {
2737 pattNoteDowncxx . . $ pattNoteDown(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2738 }
2739 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2740 {
2741 // Polyphonize Block
2742 if (!editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag.)
2743 {
2744 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("BUFFER IS EMPTY !");
2745 return;
2746 }
2747
2748 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2749
2750 int32_tcxx . . $ int32_t# i = editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.;
2751 int32_tcxx . . $ int32_t# j = songcxx . . $ song.->currRowcxx . . $ module_t#currRow.;
2752 note_tcxx . . $ note_t# *patt = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.];
2753
2754 while (truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!)
2755 {
2756 note_tcxx . . $ note_t# *noteDst = &patt[(j * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2757 if (editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].periodcxx . . $ note_t#period. == 0 && editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].samplecxx . . $ note_t#sample. == 0)
2758 {
2759 noteDst->commandcxx . . $ note_t#command. = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].commandcxx . . $ note_t#command.;
2760 noteDst->paramcxx . . $ note_t#param. = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i].paramcxx . . $ note_t#param.;
2761 }
2762 else
2763 {
2764 *noteDst = editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i];
2765 }
2766
2767 if (i == editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. || i == 63 || j == 63)
2768 break;
2769
2770 i++;
2771 j++;
2772 gotoNextMulticxx . . $ gotoNextMulti(49f6e7a06ebc5aa8).();
2773 }
2774
2775 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2776 {
2777 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. += (editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.-editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.) + 1;
2778 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. > 63)
2779 songcxx . . $ song.->currRowcxx . . $ module_t#currRow. = 0;
2780 }
2781
2782 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2783 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2784 }
2785 else
2786 {
2787 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2788 }
2789 }
2790 break;
2791
2792 case SDL_SCANCODE_Xcxx . . $ SDL_SCANCODE_X.:
2793 {
2794 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2795 {
2796 pattOctaDowncxx . . $ pattOctaDown(b45ddcbc8423892c).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL.);
2797 }
2798 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2799 {
2800 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2801 {
2802 samplerSamDeletecxx . . $ samplerSamDelete(ac50b47256ae7414).(SAMPLE_CUTcxx . . $ SAMPLE_CUT.);
2803 return;
2804 }
2805
2806 if (!editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
2807 {
2808 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("NO BLOCK MARKED !");
2809 return;
2810 }
2811
2812 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2813 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2814 editorcxx . . $ editor..blockBufferFlagcxx . . $ editor_t#blockBufferFlag. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2815
2816 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
2817 editorcxx . . $ editor..blockBuffercxx . . $ editor_t#blockBuffer.[i] = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2818
2819 if (editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos. > editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.)
2820 {
2821 editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos. = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2822 editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2823 }
2824 else
2825 {
2826 editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos. = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2827 editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos. = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2828 }
2829
2830 for (int32_tcxx . . $ int32_t# i = editorcxx . . $ editor..buffFromPoscxx . . $ editor_t#buffFromPos.; i <= editorcxx . . $ editor..buffToPoscxx . . $ editor_t#buffToPos.; i++)
2831 {
2832 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2833 noteDst->periodcxx . . $ note_t#period. = 0;
2834 noteDst->samplecxx . . $ note_t#sample. = 0;
2835 noteDst->commandcxx . . $ note_t#command. = 0;
2836 noteDst->paramcxx . . $ note_t#param. = 0;
2837 }
2838
2839 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
2840 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2841 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2842 }
2843 else
2844 {
2845 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2846 {
2847 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[1] ^= 1; // toggle channel 2
2848 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
2849 }
2850 else
2851 {
2852 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2853 }
2854 }
2855 }
2856 break;
2857
2858 case SDL_SCANCODE_Ycxx . . $ SDL_SCANCODE_Y.:
2859 {
2860 uint8_tcxx . . $ uint8_t# blockFrom, blockTo;
2861
2862 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2863 {
2864 if (!editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag.)
2865 {
2866 displayErrorMsgcxx . . $ displayErrorMsg(85c52e162fed56f9).("NO BLOCK MARKED !");
2867 return;
2868 }
2869
2870 editorcxx . . $ editor..blockMarkFlagcxx . . $ editor_t#blockMarkFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
2871
2872 saveUndocxx . . $ saveUndo(49f6e7a06ebc5aa8).();
2873
2874 if (editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos. >= editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.)
2875 {
2876 blockFrom = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2877 blockTo = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2878 }
2879 else
2880 {
2881 blockFrom = editorcxx . . $ editor..blockFromPoscxx . . $ editor_t#blockFromPos.;
2882 blockTo = editorcxx . . $ editor..blockToPoscxx . . $ editor_t#blockToPos.;
2883 }
2884
2885 while (blockFrom < blockTo)
2886 {
2887 note_tcxx . . $ note_t# *noteDst = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(blockFrom * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2888 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(blockTo * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.];
2889
2890 note_tcxx . . $ note_t# noteTmp = *noteDst;
2891 *noteDst = *noteSrc;
2892 *noteSrc = noteTmp;
2893
2894 blockFrom += 1;
2895 blockTo -= 1;
2896 }
2897
2898 statusAllRightcxx . . $ statusAllRight(49f6e7a06ebc5aa8).();
2899 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
2900 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
2901 }
2902 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2903 {
2904 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "SAVE ALL SAMPLES?"))
2905 {
2906 int8_tcxx . . $ int8_t# oldSample = editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.;
2907 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!; i++)
2908 {
2909 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = (int8_tcxx . . $ int8_t#)i;
2910 if (songcxx . . $ song.->samplescxx . . $ module_t#samples.[i].lengthcxx . . $ moduleSample_t#length. > 2)
2911 saveSamplecxx . . $ saveSample(f2cb034b043a1ce9).(DONT_CHECK_IF_FILE_EXISTcxx . . $ DONT_CHECK_IF_FILE_EXIST., GIVE_NEW_FILENAMEcxx . . $ GIVE_NEW_FILENAME.);
2912 }
2913 editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample. = oldSample;
2914
2915 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("SAMPLES SAVED !");
2916 setMsgPointercxx . . $ setMsgPointer(49f6e7a06ebc5aa8).();
2917 }
2918 }
2919 else
2920 {
2921 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2922 }
2923 }
2924 break;
2925
2926 case SDL_SCANCODE_Zcxx . . $ SDL_SCANCODE_Z.:
2927 {
2928 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
2929 {
2930 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2931 samplerPlayRangecxx . . $ samplerPlayRange(49f6e7a06ebc5aa8).();
2932 }
2933 else
2934 {
2935 if (keybcxx . . $ keyb..leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed.)
2936 {
2937 trackOctaDowncxx . . $ trackOctaDown(8f46639a028bea30).(TRANSPOSE_ALLcxx . . $ TRANSPOSE_ALL., 0, MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! - 1);
2938 }
2939 else if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
2940 {
2941 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
2942 {
2943 if (askBoxcxx . . $ askBox(7371ee129cebb502).(ASKBOX_YES_NOcxx . . $ ASKBOX_YES_NO., "RESTORE SAMPLE?"))
2944 redoSampleDatacxx . . $ redoSampleData(4af4fd0e2b26c4ac).(editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.);
2945 }
2946 else
2947 {
2948 modSetTempocxx . . $ modSetTempo(918ebd27a9ddbad3).(125, truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!);
2949 modSetSpeedcxx . . $ modSetSpeed(d4f767463ce0a6b3).(6);
2950
2951 moduleChannel_tcxx . . $ moduleChannel_t# *ch = songcxx . . $ song.->channelscxx . . $ module_t#channels.;
2952 for (int32_tcxx . . $ int32_t# i = 0; i < PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!; i++, ch++)
2953 {
2954 ch->n_wavecontrolcxx . . $ moduleChannel_t#n_wavecontrol. = 0;
2955 ch->n_glissfunkcxx . . $ moduleChannel_t#n_glissfunk. = 0;
2956 ch->n_finetunecxx . . $ moduleChannel_t#n_finetune. = 0;
2957 ch->n_loopcountcxx . . $ moduleChannel_t#n_loopcount. = 0;
2958 }
2959
2960 displayMsgcxx . . $ displayMsg(85c52e162fed56f9).("EFX RESTORED !");
2961 }
2962 }
2963 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
2964 {
2965 editorcxx . . $ editor..mutedcxx . . $ editor_t#muted.[0] ^= 1; // toggle channel 1
2966 renderMuteButtonscxx . . $ renderMuteButtons(49f6e7a06ebc5aa8).();
2967 }
2968 else
2969 {
2970 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2971 }
2972 }
2973 }
2974 break;
2975
2976 default:
2977 handleEditKeyscxx . . $ handleEditKeys(a7e180099d3f0b9c).(scancode, EDIT_NORMALcxx . . $ EDIT_NORMAL.);
2978 break;
2979 }
2980 }
2981
2982 static void movePatCurPrevChcxx . . $ movePatCurPrevCh(49f6e7a06ebc5aa8).(void)
2983 {
2984 int8_tcxx . . $ int8_t# pos = ((cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. + 5) / 6) - 1;
2985
2986 cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. = (pos < 0) ? (3 * 6) : (pos * 6);
2987 cursorcxx . . $ cursor..modecxx . . $ cursor_t#mode. = CURSOR_NOTEcxx . . $ CURSOR_NOTE.;
2988
2989 if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 6) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 0;
2990 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 12) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 1;
2991 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 18) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 2;
2992 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 24) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 3;
2993
2994 updateCursorPoscxx . . $ updateCursorPos(49f6e7a06ebc5aa8).();
2995 }
2996
2997 static void movePatCurNextChcxx . . $ movePatCurNextCh(49f6e7a06ebc5aa8).(void)
2998 {
2999 int8_tcxx . . $ int8_t# pos = (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. / 6) + 1;
3000
3001 cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. = (pos == 4) ? 0 : (pos * 6);
3002 cursorcxx . . $ cursor..modecxx . . $ cursor_t#mode. = CURSOR_NOTEcxx . . $ CURSOR_NOTE.;
3003
3004 if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 6) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 0;
3005 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 12) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 1;
3006 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 18) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 2;
3007 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 24) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 3;
3008
3009 updateCursorPoscxx . . $ updateCursorPos(49f6e7a06ebc5aa8).();
3010 }
3011
3012 static void movePatCurRightcxx . . $ movePatCurRight(49f6e7a06ebc5aa8).(void)
3013 {
3014 cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. = (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. == 23) ? 0 : (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. + 1);
3015
3016 if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 6) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 0;
3017 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 12) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 1;
3018 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 18) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 2;
3019 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 24) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 3;
3020
3021 cursorcxx . . $ cursor..modecxx . . $ cursor_t#mode. = cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. % 6;
3022 updateCursorPoscxx . . $ updateCursorPos(49f6e7a06ebc5aa8).();
3023 }
3024
3025 static void movePatCurLeftcxx . . $ movePatCurLeft(49f6e7a06ebc5aa8).(void)
3026 {
3027 cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. = (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. == 0) ? 23 : (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. - 1);
3028
3029 if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 6) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 0;
3030 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 12) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 1;
3031 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 18) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 2;
3032 else if (cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. < 24) cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel. = 3;
3033
3034 cursorcxx . . $ cursor..modecxx . . $ cursor_t#mode. = cursorcxx . . $ cursor..poscxx . . $ cursor_t#pos. % 6;
3035 updateCursorPoscxx . . $ updateCursorPos(49f6e7a06ebc5aa8).();
3036 }
3037
3038 void handleKeyRepeatcxx . . $ handleKeyRepeat(decbd40bd4dd73ad).(SDL_Scancodecxx . . $ SDL_Scancode# scancode)
3039 {
3040 if (keybcxx . . $ keyb..lastRepKeycxx . . $ keyb_t#lastRepKey. == 0)
3041 return;
3042
3043 if (!keybcxx . . $ keyb..repeatKeycxx . . $ keyb_t#repeatKey. || uicxx . . $ ui..askBoxShowncxx . . $ ui_t#askBoxShown.)
3044 {
3045 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. = 0;
3046 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3047 return;
3048 }
3049
3050 if (keybcxx . . $ keyb..delayKeycxx . . $ keyb_t#delayKey. && keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. < KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3051 {
3052 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter.++;
3053 return;
3054 }
3055
3056 switch (scancode) // only some buttons have repeat
3057 {
3058 case SDL_SCANCODE_PAGEUPcxx . . $ SDL_SCANCODE_PAGEUP.:
3059 {
3060 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3061 {
3062 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3063
3064 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
3065 {
3066 posEdPageUpcxx . . $ posEdPageUp(49f6e7a06ebc5aa8).();
3067 }
3068 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
3069 {
3070 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
3071 {
3072 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. -= DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!-1;
3073 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. < 0)
3074 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = 0;
3075
3076 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3077 }
3078 }
3079 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
3080 {
3081 if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. == 63)
3082 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 15);
3083 else if (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. == 15)
3084 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., 0); // 15-16 would turn into -1, which is "DON'T SET ROW" flag
3085 else
3086 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 16);
3087 }
3088 }
3089 }
3090 break;
3091
3092 case SDL_SCANCODE_PAGEDOWNcxx . . $ SDL_SCANCODE_PAGEDOWN.:
3093 {
3094 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3095 {
3096 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3097
3098 if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
3099 {
3100 posEdPageDowncxx . . $ posEdPageDown(49f6e7a06ebc5aa8).();
3101 }
3102 else if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
3103 {
3104 if (diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. > DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
3105 {
3106 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. += DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!-1;
3107 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. > diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
3108 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!;
3109
3110 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3111 }
3112 }
3113 else if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_IDLEcxx . . $ MODE_IDLE. || editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. == MODE_EDITcxx . . $ MODE_EDIT.)
3114 {
3115 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 16);
3116 }
3117 }
3118 }
3119 break;
3120
3121 case SDL_SCANCODE_LEFTcxx . . $ SDL_SCANCODE_LEFT.:
3122 {
3123 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3124 {
3125 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
3126 {
3127 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= 6)
3128 {
3129 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 2)
3130 {
3131 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3132 int32_tcxx . . $ int32_t# start = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.);
3133 if (start > 0)
3134 {
3135 start--;
3136 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3137 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(start);
3138 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3139 }
3140 }
3141 }
3142 else
3143 {
3144 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter.++;
3145 }
3146 }
3147 }
3148 else
3149 {
3150 if (uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag.)
3151 {
3152 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= 6)
3153 {
3154 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3155 {
3156 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3157 editTextPrevCharcxx . . $ editTextPrevChar(49f6e7a06ebc5aa8).();
3158 }
3159 }
3160 else
3161 {
3162 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter.++;
3163 }
3164 }
3165 else
3166 {
3167 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
3168 {
3169 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3170 {
3171 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3172 sampleDownButtoncxx . . $ sampleDownButton(49f6e7a06ebc5aa8).();
3173 }
3174 }
3175 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3176 {
3177 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3178 {
3179 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3180 if (songcxx . . $ song.->currPoscxx . . $ module_t#currPos. > 0)
3181 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(songcxx . . $ song.->currPoscxx . . $ module_t#currPos. - 1, DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
3182 }
3183 }
3184 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
3185 {
3186 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 4)
3187 {
3188 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3189 decPattcxx . . $ decPatt(49f6e7a06ebc5aa8).();
3190 }
3191 }
3192 else
3193 {
3194 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3195 {
3196 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3197 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed. && !keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && !keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
3198 movePatCurLeftcxx . . $ movePatCurLeft(49f6e7a06ebc5aa8).();
3199 }
3200 }
3201 }
3202 }
3203 }
3204 break;
3205
3206 case SDL_SCANCODE_RIGHTcxx . . $ SDL_SCANCODE_RIGHT.:
3207 {
3208 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3209 {
3210 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
3211 {
3212 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3213 {
3214 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 2)
3215 {
3216 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3217 int32_tcxx . . $ int32_t# start = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.);
3218 if (start < 313)
3219 {
3220 start++;
3221 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3222 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(start);
3223
3224 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
3225 {
3226 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
3227 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
3228 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
3229 }
3230
3231 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3232 }
3233 }
3234 }
3235 }
3236 }
3237 else
3238 {
3239 if (uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag.)
3240 {
3241 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3242 {
3243 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3244 {
3245 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3246 editTextNextCharcxx . . $ editTextNextChar(49f6e7a06ebc5aa8).();
3247 }
3248 }
3249 else
3250 {
3251 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter.++;
3252 }
3253 }
3254 else
3255 {
3256 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
3257 {
3258 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3259 {
3260 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3261 sampleUpButtoncxx . . $ sampleUpButton(49f6e7a06ebc5aa8).();
3262 }
3263 }
3264 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3265 {
3266 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3267 {
3268 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3269 if (songcxx . . $ song.->currPoscxx . . $ module_t#currPos. < 126)
3270 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(songcxx . . $ song.->currPoscxx . . $ module_t#currPos. + 1, DONT_SET_ROWcxx . . $ DONT_SET_ROW.);
3271 }
3272 }
3273 else if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
3274 {
3275 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 4)
3276 {
3277 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3278 incPattcxx . . $ incPatt(49f6e7a06ebc5aa8).();
3279 }
3280 }
3281 else
3282 {
3283 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 6)
3284 {
3285 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3286 if (!keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed. && !keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed. && !keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
3287 movePatCurRightcxx . . $ movePatCurRight(49f6e7a06ebc5aa8).();
3288 }
3289 }
3290 }
3291 }
3292 }
3293 break;
3294
3295 case SDL_SCANCODE_UPcxx . . $ SDL_SCANCODE_UP.:
3296 {
3297 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3298 {
3299 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
3300 {
3301 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3302 {
3303 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 2)
3304 {
3305 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3306 int32_tcxx . . $ int32_t# end = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.);
3307 if (end < 313)
3308 {
3309 end++;
3310 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3311 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(end);
3312
3313 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
3314 {
3315 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
3316 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
3317 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
3318 }
3319
3320 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3321 }
3322 }
3323 }
3324 }
3325 }
3326 else
3327 {
3328 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
3329 {
3330 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 1)
3331 {
3332 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3333
3334 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset.--;
3335 if (mousecxx . . $ mouse..rightButtonPressedcxx . . $ mouse_t#rightButtonPressed.) // PT quirk: right mouse button speeds up scrolling even on keyb UP/DOWN
3336 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. -= 3;
3337
3338 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. < 0)
3339 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = 0;
3340
3341 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3342 }
3343 }
3344 else if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
3345 {
3346 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3347 {
3348 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3349 posEdScrollUpcxx . . $ posEdScrollUp(49f6e7a06ebc5aa8).();
3350 }
3351 }
3352 else if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
3353 {
3354 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
3355 {
3356 uint8_tcxx . . $ uint8_t# repeatNum = 6;
3357 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
3358 repeatNum = 1;
3359 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3360 repeatNum = 3;
3361
3362 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= repeatNum)
3363 {
3364 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3365 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. - 1) & 63);
3366 }
3367 }
3368 }
3369 }
3370 }
3371 break;
3372
3373 case SDL_SCANCODE_DOWNcxx . . $ SDL_SCANCODE_DOWN.:
3374 {
3375 if (uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown. && keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3376 {
3377 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. >= 0 && (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed. || keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.))
3378 {
3379 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3380 {
3381 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 2)
3382 {
3383 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3384 int32_tcxx . . $ int32_t# end = smpPos2Scrcxx . . $ smpPos2Scr(7864480464b09eea).(editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.);
3385 if (end > 0)
3386 {
3387 end--;
3388 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3389 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = scr2SmpPoscxx . . $ scr2SmpPos(7864480464b09eea).(end);
3390
3391 if (editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. > editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.)
3392 {
3393 int32_tcxx . . $ int32_t# tmp = editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs.;
3394 editorcxx . . $ editor..markEndOfscxx . . $ editor_t#markEndOfs. = editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs.;
3395 editorcxx . . $ editor..markStartOfscxx . . $ editor_t#markStartOfs. = tmp;
3396 }
3397
3398 invertRangecxx . . $ invertRange(49f6e7a06ebc5aa8).();
3399 }
3400 }
3401 }
3402 }
3403 }
3404 else
3405 {
3406 if (uicxx . . $ ui..diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.)
3407 {
3408 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 1)
3409 {
3410 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3411
3412 if (diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries. > DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
3413 {
3414 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset.++;
3415 if (mousecxx . . $ mouse..rightButtonPressedcxx . . $ mouse_t#rightButtonPressed.) // PT quirk: right mouse button speeds up scrolling even on keyb UP/DOWN
3416 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. += 3;
3417
3418 if (diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. > diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!)
3419 diskopcxx . . $ diskop..scrollOffsetcxx . . $ diskop_t#scrollOffset. = diskopcxx . . $ diskop..numEntriescxx . . $ diskop_t#numEntries.-DISKOP_LINEScxx . . $ `src/pt2_diskop.h:13:9`!;
3420
3421 uicxx . . $ ui..updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3422 }
3423 }
3424 }
3425 else if (uicxx . . $ ui..posEdScreenShowncxx . . $ ui_t#posEdScreenShown.)
3426 {
3427 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3428 {
3429 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3430 posEdScrollDowncxx . . $ posEdScrollDown(49f6e7a06ebc5aa8).();
3431 }
3432 }
3433 else if (!uicxx . . $ ui..samplerScreenShowncxx . . $ ui_t#samplerScreenShown.)
3434 {
3435 if (editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_PLAYcxx . . $ MODE_PLAY. && editorcxx . . $ editor..currModecxx . . $ editor_t#currMode. != MODE_RECORDcxx . . $ MODE_RECORD.)
3436 {
3437 uint8_tcxx . . $ uint8_t# repeatNum = 6;
3438 if (keybcxx . . $ keyb..leftAltPressedcxx . . $ keyb_t#leftAltPressed.)
3439 repeatNum = 1;
3440 else if (keybcxx . . $ keyb..shiftPressedcxx . . $ keyb_t#shiftPressed.)
3441 repeatNum = 3;
3442
3443 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= repeatNum)
3444 {
3445 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3446 modSetPoscxx . . $ modSetPos(af780a7c10c7990f).(DONT_SET_ORDERcxx . . $ DONT_SET_ORDER., (songcxx . . $ song.->currRowcxx . . $ module_t#currRow. + 1) & 63);
3447 }
3448 }
3449 }
3450 }
3451 }
3452 break;
3453
3454 case SDL_SCANCODE_BACKSPACEcxx . . $ SDL_SCANCODE_BACKSPACE.:
3455 {
3456 if (uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag.)
3457 {
3458 // only repeat backspace while editing texts
3459
3460 if (keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter. >= KEYB_REPEAT_DELAYcxx . . $ `src/pt2_header.h:84:9`!)
3461 {
3462 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3463 {
3464 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3465 keyDownHandlercxx . . $ keyDownHandler(90a138f3be71ee4c).(scancode, 0);
3466 }
3467 }
3468 else
3469 {
3470 keybcxx . . $ keyb..delayCountercxx . . $ keyb_t#delayCounter.++;
3471 }
3472 }
3473 }
3474 break;
3475
3476 case SDL_SCANCODE_KP_ENTERcxx . . $ SDL_SCANCODE_KP_ENTER.:
3477 case SDL_SCANCODE_RETURNcxx . . $ SDL_SCANCODE_RETURN.:
3478 break; // do NOT repeat enter!
3479
3480 default:
3481 {
3482 if (keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. >= 3)
3483 {
3484 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter. = 0;
3485 keyDownHandlercxx . . $ keyDownHandler(90a138f3be71ee4c).(scancode, 0);
3486 }
3487 }
3488 break;
3489 }
3490
3491 // handle key repeating at ~49.92Hz (Amiga PAL vblank rate)
3492
3493 const uint32_tcxx . . $ uint32_t# delta31 = (uint32_tcxx . . $ uint32_t#)(((INT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:112:10`!+1.0) / ((double)VBLANK_HZcxx . . $ `src/pt2_header.h:58:9`! / AMIGA_PAL_VBLANK_HZcxx . . $ `src/pt2_header.h:53:9`!)) + 0.5);
3494
3495 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. += delta31; // 0.31fp
3496 if (keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. > INT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:112:10`!)
3497 {
3498 keybcxx . . $ keyb..repeatFraccxx . . $ keyb_t#repeatFrac. &= INT32_MAXcxx . . $ `<external>/3415975807581488833/stdint.h:112:10`!;
3499 keybcxx . . $ keyb..repeatCountercxx . . $ keyb_t#repeatCounter.++;
3500 }
3501 }
3502
3503 static void swapChannelcxx . . $ swapChannel(8fbe6856f5410d23).(uint8_tcxx . . $ uint8_t# srcCh, uint8_tcxx . . $ uint8_t# dstCh)
3504 {
3505 if (srcCh == dstCh)
3506 return;
3507
3508 for (int32_tcxx . . $ int32_t# i = 0; i < MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!; i++)
3509 {
3510 note_tcxx . . $ note_t# *noteSrc = &songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + dstCh];
3511 note_tcxx . . $ note_t# noteTmp = songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + srcCh];
3512
3513 songcxx . . $ song.->patternscxx . . $ module_t#patterns.[songcxx . . $ song.->currPatterncxx . . $ module_t#currPattern.][(i * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!) + srcCh] = *noteSrc;
3514 *noteSrc = noteTmp;
3515 }
3516
3517 updateWindowTitlecxx . . $ updateWindowTitle(b45ddcbc8423892c).(MOD_IS_MODIFIEDcxx . . $ MOD_IS_MODIFIED.);
3518 uicxx . . $ ui..updatePatternDatacxx . . $ ui_t#updatePatternData. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3519 }
3520
3521 static boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! handleGeneralModescxx . . $ handleGeneralModes(701ccd9e525c23ba).(SDL_Scancodecxx . . $ SDL_Scancode# scancode)
3522 {
3523 // if MOD2WAV is ongoing, only check for ESC key
3524 if (editorcxx . . $ editor..mod2WavOngoingcxx . . $ editor_t#mod2WavOngoing.)
3525 {
3526 if (scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3527 editorcxx . . $ editor..abortMod2Wavcxx . . $ editor_t#abortMod2Wav. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3528
3529 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!; // don't handle other keys
3530 }
3531
3532 // SAMPLER SCREEN (volume box)
3533 if (uicxx . . $ ui..samplerVolBoxShowncxx . . $ ui_t#samplerVolBoxShown. && !uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag. && scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3534 {
3535 uicxx . . $ ui..samplerVolBoxShowncxx . . $ ui_t#samplerVolBoxShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3536 removeSamplerVolBoxcxx . . $ removeSamplerVolBox(49f6e7a06ebc5aa8).();
3537 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3538 }
3539
3540 // SAMPLER SCREEN (filters box)
3541 if (uicxx . . $ ui..samplerFiltersBoxShowncxx . . $ ui_t#samplerFiltersBoxShown. && !uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag. && scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3542 {
3543 uicxx . . $ ui..samplerFiltersBoxShowncxx . . $ ui_t#samplerFiltersBoxShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3544 removeSamplerFiltersBoxcxx . . $ removeSamplerFiltersBox(49f6e7a06ebc5aa8).();
3545 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3546 }
3547
3548 // SAMPLER SCREEN (sampling box)
3549 if (uicxx . . $ ui..samplingBoxShowncxx . . $ ui_t#samplingBoxShown.)
3550 {
3551 if (audiocxx . . $ audio..isSamplingcxx . . $ audio_t#isSampling.)
3552 {
3553 stopSamplingcxx . . $ stopSampling(49f6e7a06ebc5aa8).();
3554 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3555 }
3556
3557 if (scancode == SDL_SCANCODE_F1cxx . . $ SDL_SCANCODE_F1.)
3558 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_LOWcxx . . $ OCTAVE_LOW.;
3559 else if (scancode == SDL_SCANCODE_F2cxx . . $ SDL_SCANCODE_F2.)
3560 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_HIGHcxx . . $ OCTAVE_HIGH.;
3561
3562 if (uicxx . . $ ui..changingSamplingNotecxx . . $ ui_t#changingSamplingNote.)
3563 {
3564 if (scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3565 {
3566 uicxx . . $ ui..changingSamplingNotecxx . . $ ui_t#changingSamplingNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3567 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3568 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3569 }
3570
3571 int8_tcxx . . $ int8_t# rawKey = keyToNotecxx . . $ keyToNote(a7fb186c51a7e989).(scancode);
3572 if (rawKey >= 0)
3573 {
3574 uicxx . . $ ui..changingSamplingNotecxx . . $ ui_t#changingSamplingNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3575
3576 setSamplingNotecxx . . $ setSamplingNote(ac50b47256ae7414).(rawKey);
3577
3578 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3579 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3580 }
3581
3582 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3583 }
3584 else
3585 {
3586 if (keybcxx . . $ keyb..leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed.)
3587 {
3588 if (scancode == SDL_SCANCODE_LEFTcxx . . $ SDL_SCANCODE_LEFT.)
3589 samplingSampleNumDowncxx . . $ samplingSampleNumDown(49f6e7a06ebc5aa8).();
3590 else if (scancode == SDL_SCANCODE_RIGHTcxx . . $ SDL_SCANCODE_RIGHT.)
3591 samplingSampleNumUpcxx . . $ samplingSampleNumUp(49f6e7a06ebc5aa8).();
3592 }
3593 else
3594 {
3595 if (scancode == SDL_SCANCODE_SPACEcxx . . $ SDL_SCANCODE_SPACE.)
3596 turnOffVoicescxx . . $ turnOffVoices(49f6e7a06ebc5aa8).();
3597 else
3598 handleSampleJammingcxx . . $ handleSampleJamming(decbd40bd4dd73ad).(scancode);
3599 }
3600 }
3601
3602 if (!uicxx . . $ ui..editTextFlagcxx . . $ ui_t#editTextFlag. && scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3603 {
3604 uicxx . . $ ui..samplingBoxShowncxx . . $ ui_t#samplingBoxShown. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3605 removeSamplingBoxcxx . . $ removeSamplingBox(49f6e7a06ebc5aa8).();
3606 }
3607
3608 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3609 }
3610
3611 // EDIT OP. SCREEN #3
3612 if (editorcxx . . $ editor..mixFlagcxx . . $ editor_t#mixFlag. && scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3613 {
3614 leaveTextEditModecxx . . $ leaveTextEditMode(b45ddcbc8423892c).(EDIT_TEXT_UPDATEcxx . . $ EDIT_TEXT_UPDATE.);
3615 editorcxx . . $ editor..mixFlagcxx . . $ editor_t#mixFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3616 uicxx . . $ ui..updateMixTextcxx . . $ ui_t#updateMixText. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3617 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3618 }
3619
3620 // EDIT OP. SCREEN #4
3621 if (uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote.)
3622 {
3623 if (scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3624 {
3625 uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3626 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3627 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3628 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3629 }
3630
3631 if (scancode == SDL_SCANCODE_F1cxx . . $ SDL_SCANCODE_F1.)
3632 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_LOWcxx . . $ OCTAVE_LOW.;
3633 else if (scancode == SDL_SCANCODE_F2cxx . . $ SDL_SCANCODE_F2.)
3634 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_HIGHcxx . . $ OCTAVE_HIGH.;
3635
3636 int8_tcxx . . $ int8_t# rawKey = keyToNotecxx . . $ keyToNote(a7fb186c51a7e989).(scancode);
3637 if (rawKey >= 0)
3638 {
3639 if (uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. == 1)
3640 {
3641 editorcxx . . $ editor..note1cxx . . $ editor_t#note1. = rawKey;
3642 uicxx . . $ ui..updateChordNote1Textcxx . . $ ui_t#updateChordNote1Text. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3643 }
3644 else if (uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. == 2)
3645 {
3646 editorcxx . . $ editor..note2cxx . . $ editor_t#note2. = rawKey;
3647 uicxx . . $ ui..updateChordNote2Textcxx . . $ ui_t#updateChordNote2Text. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3648 }
3649 else if (uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. == 3)
3650 {
3651 editorcxx . . $ editor..note3cxx . . $ editor_t#note3. = rawKey;
3652 uicxx . . $ ui..updateChordNote3Textcxx . . $ ui_t#updateChordNote3Text. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3653 }
3654 else if (uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. == 4)
3655 {
3656 editorcxx . . $ editor..note4cxx . . $ editor_t#note4. = rawKey;
3657 uicxx . . $ ui..updateChordNote4Textcxx . . $ ui_t#updateChordNote4Text. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3658 }
3659
3660 uicxx . . $ ui..changingChordNotecxx . . $ ui_t#changingChordNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3661 recalcChordLengthcxx . . $ recalcChordLength(49f6e7a06ebc5aa8).();
3662
3663 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3664 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3665 }
3666
3667 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3668 }
3669
3670 // CHANGE DRUMPAD NOTE
3671 if (uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote.)
3672 {
3673 if (scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3674 {
3675 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3676 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3677 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3678 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3679 }
3680
3681 if (scancode == SDL_SCANCODE_F1cxx . . $ SDL_SCANCODE_F1.)
3682 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_LOWcxx . . $ OCTAVE_LOW.;
3683 else if (scancode == SDL_SCANCODE_F2cxx . . $ SDL_SCANCODE_F2.)
3684 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_HIGHcxx . . $ OCTAVE_HIGH.;
3685
3686 int8_tcxx . . $ int8_t# rawKey = keyToNotecxx . . $ keyToNote(a7fb186c51a7e989).(scancode);
3687 if (rawKey >= 0)
3688 {
3689 pNoteTablecxx . . $ pNoteTable.[editorcxx . . $ editor..currSamplecxx . . $ editor_t#currSample.] = rawKey;
3690 uicxx . . $ ui..changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3691 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3692 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3693 }
3694
3695 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3696 }
3697
3698 // SAMPLER SCREEN
3699 if (uicxx . . $ ui..changingSmpResamplecxx . . $ ui_t#changingSmpResample.)
3700 {
3701 if (scancode == SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.)
3702 {
3703 uicxx . . $ ui..changingSmpResamplecxx . . $ ui_t#changingSmpResample. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3704 uicxx . . $ ui..updateResampleNotecxx . . $ ui_t#updateResampleNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3705 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3706 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3707 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3708 }
3709
3710 if (scancode == SDL_SCANCODE_F1cxx . . $ SDL_SCANCODE_F1.)
3711 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_LOWcxx . . $ OCTAVE_LOW.;
3712 else if (scancode == SDL_SCANCODE_F2cxx . . $ SDL_SCANCODE_F2.)
3713 editorcxx . . $ editor..keyOctavecxx . . $ editor_t#keyOctave. = OCTAVE_HIGHcxx . . $ OCTAVE_HIGH.;
3714
3715 int8_tcxx . . $ int8_t# rawKey = keyToNotecxx . . $ keyToNote(a7fb186c51a7e989).(scancode);
3716 if (rawKey >= 0)
3717 {
3718 editorcxx . . $ editor..resampleNotecxx . . $ editor_t#resampleNote. = rawKey;
3719 uicxx . . $ ui..changingSmpResamplecxx . . $ ui_t#changingSmpResample. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3720 uicxx . . $ ui..updateResampleNotecxx . . $ ui_t#updateResampleNote. = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3721 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3722 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3723 }
3724
3725 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3726 }
3727
3728 // SWAP CHANNEL (CTRL+T)
3729 if (editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag.)
3730 {
3731 switch (scancode)
3732 {
3733 case SDL_SCANCODE_ESCAPEcxx . . $ SDL_SCANCODE_ESCAPE.:
3734 {
3735 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3736 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3737 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3738 }
3739 break;
3740
3741 case SDL_SCANCODE_1cxx . . $ SDL_SCANCODE_1.:
3742 {
3743 swapChannelcxx . . $ swapChannel(8fbe6856f5410d23).(0, cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.);
3744 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3745
3746 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3747 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3748 }
3749 break;
3750
3751 case SDL_SCANCODE_2cxx . . $ SDL_SCANCODE_2.:
3752 {
3753 swapChannelcxx . . $ swapChannel(8fbe6856f5410d23).(1, cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.);
3754 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3755
3756 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3757 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3758 }
3759 break;
3760
3761 case SDL_SCANCODE_3cxx . . $ SDL_SCANCODE_3.:
3762 {
3763 swapChannelcxx . . $ swapChannel(8fbe6856f5410d23).(2, cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.);
3764 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3765
3766 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3767 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3768 }
3769 break;
3770
3771 case SDL_SCANCODE_4cxx . . $ SDL_SCANCODE_4.:
3772 {
3773 swapChannelcxx . . $ swapChannel(8fbe6856f5410d23).(3, cursorcxx . . $ cursor..channelcxx . . $ cursor_t#channel.);
3774 editorcxx . . $ editor..swapChannelFlagcxx . . $ editor_t#swapChannelFlag. = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3775
3776 pointerSetPreviousModecxx . . $ pointerSetPreviousMode(49f6e7a06ebc5aa8).();
3777 setPrevStatusMessagecxx . . $ setPrevStatusMessage(49f6e7a06ebc5aa8).();
3778 }
3779 break;
3780
3781 default: break;
3782 }
3783
3784 return falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
3785 }
3786
3787 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
3788 }