mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 22:39:18 +02:00
LCD Screens in python
Merge with python branch
This commit is contained in:
15
Console.cpp
15
Console.cpp
@@ -274,7 +274,10 @@ void Console::BitsUpdate(int mask)
|
||||
}
|
||||
};
|
||||
|
||||
bool Console::Pressed(int x) { return Global::bActive && (GetKeyState(x) < 0); }; // na razie tak - czyta się tylko klawiatura
|
||||
bool Console::Pressed(int x)
|
||||
{ // na razie tak - czyta się tylko klawiatura
|
||||
return Global::bActive && (GetKeyState(x) < 0);
|
||||
};
|
||||
|
||||
void Console::ValueSet(int x, double y)
|
||||
{ // ustawienie wartości (y) na kanale analogowym (x)
|
||||
@@ -353,5 +356,11 @@ void Console::OnKeyUp(int k)
|
||||
else
|
||||
iButton[char(k) >> 5] &= ~(1 << (k & 31)); // wyłącz monostabilny podstawowy
|
||||
};
|
||||
int Console::KeyDownConvert(int k) { return int(ktTable[k & 0x3FF].iDown); };
|
||||
int Console::KeyUpConvert(int k) { return int(ktTable[k & 0x3FF].iUp); };
|
||||
int Console::KeyDownConvert(int k)
|
||||
{
|
||||
return int(ktTable[k & 0x3FF].iDown);
|
||||
};
|
||||
int Console::KeyUpConvert(int k)
|
||||
{
|
||||
return int(ktTable[k & 0x3FF].iUp);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user