mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 05:38:39 -05:00
shift key for faster frequency change
This commit is contained in:
parent
1dc218d346
commit
d53eb5fc9f
@ -163,13 +163,21 @@ void WaterfallCanvas::OnKeyDown(wxKeyEvent& event) {
|
||||
switch (event.GetKeyCode()) {
|
||||
case WXK_RIGHT:
|
||||
freq = wxGetApp().getFrequency();
|
||||
freq += SRATE / 2;
|
||||
if (shiftDown) {
|
||||
freq += SRATE*10;
|
||||
} else {
|
||||
freq += SRATE / 2;
|
||||
}
|
||||
wxGetApp().setFrequency(freq);
|
||||
((wxFrame*) parent)->GetStatusBar()->SetStatusText(wxString::Format(wxT("Set center frequency: %i"), freq));
|
||||
break;
|
||||
case WXK_LEFT:
|
||||
freq = wxGetApp().getFrequency();
|
||||
freq -= SRATE / 2;
|
||||
if (shiftDown) {
|
||||
freq -= SRATE*10;
|
||||
} else {
|
||||
freq -= SRATE / 2;
|
||||
}
|
||||
wxGetApp().setFrequency(freq);
|
||||
((wxFrame*) parent)->GetStatusBar()->SetStatusText(wxString::Format(wxT("Set center frequency: %i"), freq));
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user