mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 22:17:59 +00:00
[X11] Reconcile logical keyboard state with physical state on FocusIn
since the window system doesn't do it for us like other platforms. This prevents sticky keys and missed keys when going in and out of focus, for example Alt would appear to stick if switching away from an SDL app with Alt-Tab and had to be pressed again. CR: Sam
This commit is contained in:
6
premake/Linux/build-scripts/clean_premake.sh
Executable file
6
premake/Linux/build-scripts/clean_premake.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# change to directory above shell file
|
||||
SCRIPTPATH=`readlink -f $0`
|
||||
SCRIPTDIR=`dirname $SCRIPTPATH`
|
||||
cd $SCRIPTDIR/..
|
||||
$SCRIPTDIR//premake4 --file=../premake4.lua --to=./Linux clean
|
||||
6
premake/Linux/build-scripts/gmake.sh
Executable file
6
premake/Linux/build-scripts/gmake.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
# change to directory above shell file
|
||||
SCRIPTPATH=`readlink -f $0`
|
||||
SCRIPTDIR=`dirname $SCRIPTPATH`
|
||||
cd $SCRIPTDIR/..
|
||||
$SCRIPTDIR/premake4 --file=../premake4.lua --to=./Linux gmake
|
||||
BIN
premake/Linux/build-scripts/premake4
Executable file
BIN
premake/Linux/build-scripts/premake4
Executable file
Binary file not shown.
94
premake/Linux/build-scripts/run.tests.sh
Executable file
94
premake/Linux/build-scripts/run.tests.sh
Executable file
@@ -0,0 +1,94 @@
|
||||
#!/bin/bash
|
||||
|
||||
function pause() {
|
||||
read -p "$*"
|
||||
}
|
||||
|
||||
function pass() {
|
||||
if [ -d "$1/Build/Debug" ]; then
|
||||
cd $1/Build/Debug
|
||||
echo "Testing:" $1
|
||||
"./$@"
|
||||
cd ../../..
|
||||
pause "Press any key to continue..."
|
||||
fi
|
||||
}
|
||||
|
||||
function randomfile() {
|
||||
fcount=($1/*.*)
|
||||
fcount=${#fcount[@]}
|
||||
fpick=$(($RANDOM % $fcount))
|
||||
for d in $1/*.*; do
|
||||
if [[ $fpick -eq 0 ]]; then
|
||||
RETURN=$d
|
||||
echo $d
|
||||
return
|
||||
fi
|
||||
fpick=$(($fpick - 1))
|
||||
done
|
||||
}
|
||||
|
||||
function testspecial() {
|
||||
if [ -d "$1/Build/Debug" ]; then
|
||||
cd $1/Build/Debug
|
||||
randomfile $2
|
||||
cd ../../..
|
||||
pass $1 $RETURN
|
||||
fi
|
||||
}
|
||||
|
||||
# change to directory above shell file
|
||||
SCRIPTPATH=`readlink -f $0`
|
||||
SCRIPTDIR=`dirname $SCRIPTPATH`
|
||||
cd $SCRIPTDIR/..
|
||||
cd tests
|
||||
|
||||
pass "checkkeys"
|
||||
pass "loopwave"
|
||||
pass "testatomic"
|
||||
pass "testaudioinfo"
|
||||
pass "testautomation"
|
||||
pass "testdraw2"
|
||||
pass "testchessboard"
|
||||
pass "testerror"
|
||||
pass "testfile"
|
||||
pass "testfilesystem"
|
||||
pass "testgamecontroller"
|
||||
pass "testgesture"
|
||||
pass "testgl2"
|
||||
pass "testgles"
|
||||
pass "testhaptic"
|
||||
pass "testiconv"
|
||||
pass "testime"
|
||||
pass "testintersection"
|
||||
pass "testjoystick"
|
||||
pass "testkeys"
|
||||
#pass "testloadso"
|
||||
pass "testlock"
|
||||
pass "testmessage"
|
||||
#pass "testmultiaudio"
|
||||
pass "testnative"
|
||||
pass "testoverlay2"
|
||||
pass "testplatform"
|
||||
pass "testpower"
|
||||
pass "testrelative"
|
||||
pass "testrendercopyex"
|
||||
pass "testrendertarget"
|
||||
pass "testresample" "sample.wav" "newsample.wav" "44100"
|
||||
pass "testrumble"
|
||||
pass "testscale"
|
||||
pass "testsem" 1
|
||||
pass "testshader"
|
||||
testspecial "testshape" ./shapes
|
||||
testspecial "testshape" ./shapes
|
||||
testspecial "testshape" ./shapes
|
||||
pass "testsprite2"
|
||||
pass "testspriteminimal"
|
||||
pass "teststreaming"
|
||||
pass "testthread"
|
||||
pass "testtimer"
|
||||
pass "testver"
|
||||
pass "testwm2"
|
||||
pass "torturethread"
|
||||
|
||||
cd ..
|
||||
Reference in New Issue
Block a user