File tree Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Expand file tree Collapse file tree 3 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 24
24
shift+F12 - Toggle Amiga panning (100% stereo separation)
25
25
ctrl+F12 - Toggle CIA/VBLANK timing for tempo/speed effect (Fxx)
26
26
alt+1/2/3/4 - Increase Multi ordering (when in idle, not play/edit/rec.)
27
+ home - Go to row 0
28
+ end - Go to row 63
29
+ page up - Go 16 rows up
30
+ page down - Go 16 rows down
31
+ ctrl+del - Delete note+sample from pattern data
27
32
-------------------------------------------------
28
-
33
+ (US keyboard layout)
29
34
High note keys: 2 3 5 6 7 9 0 =
30
35
Q W E R T Y U I O P [ ]
31
36
35
40
F1 - Choose low octave (from C-1 to G-3)
36
41
F2 - Choose high octave (from C-2 to B-3)
37
42
43
+ up - Go one row up
44
+ shift+up - Go one row up (faster)
45
+ alt+up - Go one row up (fastest)
46
+ down - Go one row down
47
+ shift+down - Go one row down (faster)
48
+ alt+down - Go one row down (fastest)
49
+
38
50
shift+F3 - Cut channel to buffer
39
51
shift+F4 - Copy channel to buffer
40
52
shift+F5 - Paste channel buffer to channel
85
97
right ctrl (cmd on Mac) - Play Pattern
86
98
right shift - Record
87
99
88
- caps lock - Toggle Keyrepeat on/off (will use the OS settings for repeat/delay )
100
+ caps lock - Toggle Keyrepeat on/off (will use the OS settings for key repeat speed )
89
101
90
102
del - Delete note under cursor
91
103
alt+del - Delete command only
Original file line number Diff line number Diff line change 14
14
#include "pt2_unicode.h"
15
15
#include "pt2_palette.h"
16
16
17
- #define PROG_VER_STR "1.47 "
17
+ #define PROG_VER_STR "1.48 "
18
18
19
19
#ifdef _WIN32
20
20
#define DIR_DELIMITER '\\'
36
36
*/
37
37
#define VBLANK_HZ 60
38
38
39
- /* Scopes are clocked at 64Hz instead of 60Hz to prevent the small +/- Hz
39
+ /* Scopes are clocked at 64Hz instead of 60Hz to prevent the small +/- Hz
40
40
** interference from monitors not being exactly 60Hz (and unstable non-vsync mode).
41
41
** Sadly, the scopes might mildly flicker from this in some cases.
42
42
*/
75
75
76
76
#define FILTERS_BASE_FREQ (PAULA_PAL_CLK / 214.0)
77
77
78
+ // Amount of video frames. 14 (PT on Amiga) -> 17 (converted from 49.92Hz to 60Hz)
78
79
#define KEYB_REPEAT_DELAY 17
79
80
80
81
// .MOD types
Original file line number Diff line number Diff line change @@ -341,11 +341,21 @@ void keyDownHandler(SDL_Scancode scancode, SDL_Keycode keycode)
341
341
return ;
342
342
}
343
343
344
+ // kludge: allow certain specific key combos to be repeated with the ctrl key
345
+ const bool nonRepeatAltKeys = keyb .leftAltPressed && scancode != SDL_SCANCODE_DELETE && scancode != SDL_SCANCODE_RETURN
346
+ && scancode != SDL_SCANCODE_BACKSPACE && scancode != SDL_SCANCODE_BACKSLASH
347
+ && scancode != SDL_SCANCODE_EQUALS && scancode != SDL_SCANCODE_MINUS
348
+ && scancode < SDL_SCANCODE_1 && scancode > SDL_SCANCODE_0 ;
349
+
350
+ // kludge: allow certain specific key combos to be repeated with the alt key
351
+ const bool nonRepeatCtrlKeys = keyb .leftCtrlPressed && scancode != SDL_SCANCODE_DELETE && scancode != SDL_SCANCODE_RETURN
352
+ && scancode != SDL_SCANCODE_BACKSPACE ;
353
+
344
354
// these keys should not allow to be repeated in keyrepeat mode (caps lock)
345
- const bool illegalKeys = keyb .leftAltPressed || keyb . leftAmigaPressed || keyb . leftCtrlPressed
355
+ const bool nonRepeatKeys = keyb .leftAmigaPressed || nonRepeatAltKeys || nonRepeatCtrlKeys
346
356
|| scancode == SDL_SCANCODE_LEFT || scancode == SDL_SCANCODE_RIGHT
347
357
|| scancode == SDL_SCANCODE_UP || scancode == SDL_SCANCODE_DOWN ;
348
- if (editor .repeatKeyFlag && keyb .repeatKey && scancode == keyb .lastRepKey && illegalKeys )
358
+ if (editor .repeatKeyFlag && keyb .repeatKey && scancode == keyb .lastRepKey && nonRepeatKeys )
349
359
return ;
350
360
351
361
if (scancode == SDL_SCANCODE_KP_PLUS )
You can’t perform that action at this time.
0 commit comments