mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 17:09:19 +02:00
Merge branch 'mover_in_c++' of https://github.com/tmj-fstate/maszyna into tmj-fstate-mover_in_c++
This commit is contained in:
@@ -130,13 +130,13 @@ bool TEventLauncher::check_conditions()
|
||||
bool bCond = false;
|
||||
if (iKey != 0)
|
||||
{
|
||||
// tylko jeśli okno jest aktywne
|
||||
// tylko jeśli okno jest aktywne
|
||||
if( iKey > 255 ) {
|
||||
// key and modifier
|
||||
auto const modifier = ( iKey & 0xff00 ) >> 8;
|
||||
bCond = ( Console::Pressed( iKey & 0xff ) )
|
||||
&& ( modifier & 1 ? Global::shiftState : true )
|
||||
&& ( modifier & 2 ? Global::ctrlState : true );
|
||||
&& ( ( modifier & 1 ) ? Global::shiftState : true )
|
||||
&& ( ( modifier & 2 ) ? Global::ctrlState : true );
|
||||
}
|
||||
else {
|
||||
// just key
|
||||
|
||||
Reference in New Issue
Block a user