X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fio%2FEventTest.cpp;h=1e0e2d617a2bb4b44f5870a839898c4f00874948;hb=e9ea3616ecfd05fc267289c52d695b7029ba0901;hp=7f5df10ba42153692b81e835515ef7c32b739778;hpb=f9f2745e740068c2d36634517e576dff705c8249;p=blank.git diff --git a/tst/io/EventTest.cpp b/tst/io/EventTest.cpp index 7f5df10..1e0e2d6 100644 --- a/tst/io/EventTest.cpp +++ b/tst/io/EventTest.cpp @@ -221,12 +221,12 @@ void EventTest::testKey() { event.key.repeat = 1; event.key.keysym.scancode = SDL_SCANCODE_L; event.key.keysym.sym = SDLK_l; - event.key.keysym.mod = KMOD_RSHIFT | KMOD_LGUI; + event.key.keysym.mod = KMOD_RSHIFT | KMOD_RCTRL | KMOD_LGUI; CPPUNIT_ASSERT_EQUAL_MESSAGE( "output format of SDL key up event", string("key up: window ID: 3, state: released, repeat: yes, keysym: " "scancode: ") + to_string(int(SDL_SCANCODE_L)) + ", sym: " - + to_string(int(SDLK_l)) +" (\"L\"), mod: RSHIFT LSUPER", string_cast(event)); + + to_string(int(SDLK_l)) +" (\"L\"), mod: RSHIFT RCTRL LSUPER", string_cast(event)); event.key.windowID = 4; event.key.repeat = 2; event.key.keysym.scancode = SDL_SCANCODE_VOLUMEUP; @@ -390,6 +390,10 @@ void EventTest::testMouse() { CPPUNIT_ASSERT_EQUAL_MESSAGE( "output format of SDL mouse button up event", string("mouse button up: window ID: 5, mouse ID: 6, button: X2, state: pressed, clicks: 7, position: 8 9"), string_cast(event)); + event.button.button = SDL_BUTTON_X2 + 1; + CPPUNIT_ASSERT_EQUAL_MESSAGE( + "output format of SDL mouse button up event", + string("mouse button up: window ID: 5, mouse ID: 6, button: ") + to_string(int(SDL_BUTTON_X2 + 1)) + ", state: pressed, clicks: 7, position: 8 9", string_cast(event)); event.type = SDL_MOUSEWHEEL; event.wheel.windowID = 0;