ofs | hex dump | ascii |
---|
0000 | 42 42 33 44 4f 1f 00 00 01 00 00 00 54 45 58 53 25 00 00 00 72 61 69 6c 2e 70 6e 67 00 01 00 00 | BB3DO.......TEXS%...rail.png.... |
0020 | 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 80 3f 00 00 80 3f 00 00 00 00 42 52 55 53 2e 00 00 | ................?...?....BRUS... |
0040 | 00 01 00 00 00 42 72 75 73 68 2e 30 30 31 00 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 00 80 3f 00 | .....Brush.001....?...?...?...?. |
0060 | 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 4e 4f 44 45 e0 1e 00 00 72 61 69 6c 5f 34 35 5f 39 | ...............NODE....rail_45_9 |
0080 | 30 69 00 00 00 e0 c0 00 00 80 be 00 00 80 40 ce cc cc 3e cd cc cc 3e 02 00 00 3f 5e 1c 7c 3f 00 | 0i............@...>...>...?^.|?. |
00a0 | 00 00 00 d4 d0 31 3e 00 00 00 00 4d 45 53 48 a4 1e 00 00 ff ff ff ff 56 52 54 53 0c 1a 00 00 01 | .....1>....MESH........VRTS..... |
00c0 | 00 00 00 01 00 00 00 02 00 00 00 69 90 a7 3f 00 00 c0 be e3 1e 03 40 cd a3 66 3f fc c1 fd bd aa | ...........i..?.......@..f?..... |
00e0 | e9 d4 be 0d 41 34 3f f6 b3 30 3f e2 29 da 3f 00 00 c0 be 20 bd c7 bf 80 df 3f 3f 20 11 10 be 4b | ....A4?..0?.).?..........??....K |
0100 | 97 25 bf bc fb 2e 3e f4 b3 30 3f c3 fe 91 3f 00 00 c0 be 9d b9 b2 bf bd 79 5e bf 85 b1 42 be d4 | .%....>..0?...?.........y^...B.. |
0120 | d1 e9 be c0 fb 2e 3e 1c c0 07 3f 99 eb 43 3f 00 00 c0 be 87 46 ec 3f 89 79 44 bf cb 51 65 be 34 | ......>...?..C?.....F.?.yD..Qe.4 |
0140 | c3 19 bf 0f 41 34 3f 20 c0 07 3f 8b ec 7d 3f cc cc 8c be 34 18 f7 3f 5b 95 2d bf fd b9 fe 3e 15 | ....A4?...?..}?....4..?[.-....>. |
0160 | 7f 0a bf 0e 41 34 3f bc be ea 3e b7 10 b0 3f cc cc 8c be 13 7b bb bf 2b 5b 15 bf 97 71 4b 3e 93 | ....A4?...>...?.....{..+[...qK>. |
0180 | 97 49 bf c8 fb 2e 3e b0 be ea 3e b8 10 b0 3f c0 cc cc bc 12 7b bb bf 19 71 0c bf a7 81 53 be 9f | .I....>...>...?.....{...q....S.. |
01a0 | 65 4f bf ce fb 2e 3e 26 9e c8 3e 8b ec 7d 3f c0 cc cc bc 34 18 f7 3f 42 13 21 bf eb 49 75 be 7b | eO....>&..>..}?....4..?B.!..Iu.{ |
01c0 | 47 3d 3f 0f 41 34 3f 36 9e c8 3e e8 17 bc 3f cc cc 8c be a9 fb be bf 03 89 81 3e 9f b1 cf 3e c2 | G=?.A4?6..>...?...........>...>. |
01e0 | d7 60 bf ca fb 2e 3e a0 21 c7 3d e2 29 da 3f 00 00 c0 be 20 bd c7 bf 80 df 3f 3f 20 11 10 be 4b | .`....>.!.=.).?..........??....K |
0200 | 97 25 bf de fb 2e 3e 00 6e d0 3c 69 90 a7 3f 00 00 c0 be e3 1e 03 40 cd a3 66 3f fc c1 fd bd aa | .%....>.n.<i..?.......@..f?..... |
0220 | e9 d4 be 16 41 34 3f c0 6e d0 3c 13 90 8a 3f cc cc 8c be 0a 6c fb 3f a4 19 52 3f 04 2f 02 3f 0b | ....A4?.n.<...?.....l.?..R?./.?. |
0240 | 51 85 be 12 41 34 3f e0 21 c7 3d e2 29 da 3f 00 00 c0 be 20 bd c7 bf 80 df 3f 3f 20 11 10 be 4b | Q...A4?.!.=.).?..........??....K |
0260 | 97 25 bf f8 e6 19 3d 2c 9f 4a 3e e8 17 bc 3f cc cc 8c be a9 fb be bf 03 89 81 3e 9f b1 cf 3e c2 | .%....=,.J>...?...........>...>. |
0280 | d7 60 bf c4 8d 83 3d 28 70 87 3e b7 10 b0 3f cc cc 8c be 13 7b bb bf 2b 5b 15 bf 97 71 4b 3e 93 | .`....=(p.>...?.....{..+[...qK>. |
02a0 | 97 49 bf b8 8d 83 3d c6 16 95 3e c3 fe 91 3f 00 00 c0 be 9d b9 b2 bf bd 79 5e bf 85 b1 42 be d4 | .I....=...>...?.........y^...B.. |
02c0 | d1 e9 be 10 e6 19 3d 4c 37 b7 3e c3 fe 91 3f 00 00 c0 be 9d b9 b2 bf bd 79 5e bf 85 b1 42 be d4 | ......=L7.>...?.........y^...B.. |
02e0 |
React to nothing here if a menu is active
*/
if (isMenuActive()) {
#ifdef HAVE_TOUCHSCREENGUI
if (m_touchscreengui) {
m_touchscreengui->Toggle(false);
}
#endif
return g_menumgr.preprocessEvent(event);
}
// Remember whether each key is down or up
if (event.EventType == irr::EET_KEY_INPUT_EVENT) {
const KeyPress &keyCode = event.KeyInput;
if (keysListenedFor[keyCode]) {
if (event.KeyInput.PressedDown) {
keyIsDown.set(keyCode);
keyWasDown.set(keyCode);
} else {
keyIsDown.unset(keyCode);
}
return true;
}
}
#ifdef HAVE_TOUCHSCREENGUI
// case of touchscreengui we have to handle different events
if (m_touchscreengui && event.EventType == irr::EET_TOUCH_INPUT_EVENT) {
m_touchscreengui->translateEvent(event);
return true;
}
#endif
if (event.EventType == irr::EET_JOYSTICK_INPUT_EVENT) {
/* TODO add a check like:
if (event.JoystickEvent != joystick_we_listen_for)
return false;
*/
return joystick->handleEvent(event.JoystickEvent);
}
// handle mouse events
if (event.EventType == irr::EET_MOUSE_INPUT_EVENT) {
if (isMenuActive()) {
left_active = false;
middle_active = false;
right_active = false;
} else {
left_active = event.MouseInput.isLeftPressed();
middle_active = event.MouseInput.isMiddlePressed();
right_active = event.MouseInput.isRightPressed();
if (event.MouseInput.Event == EMIE_LMOUSE_PRESSED_DOWN) {
leftclicked = true;
}
if (event.MouseInput.Event == EMIE_RMOUSE_PRESSED_DOWN) {
rightclicked = true;
}
if (event.MouseInput.Event == EMIE_LMOUSE_LEFT_UP) {
leftreleased = true;
}
if (event.MouseInput.Event == EMIE_RMOUSE_LEFT_UP) {
rightreleased = true;
}
if (event.MouseInput.Event == EMIE_MOUSE_WHEEL) {
mouse_wheel += event.MouseInput.Wheel;
}
}
} else if (event.EventType == irr::EET_LOG_TEXT_EVENT) {
static const LogLevel irr_loglev_conv[] = {
LL_VERBOSE, // ELL_DEBUG
LL_INFO, // ELL_INFORMATION
LL_WARNING, // ELL_WARNING
LL_ERROR, // ELL_ERROR
LL_NONE, // ELL_NONE
};
assert(event.LogEvent.Level < ARRLEN(irr_loglev_conv));
g_logger.log(irr_loglev_conv[event.LogEvent.Level],
std::string("Irrlicht: ") +
(const char *)event.LogEvent.Text);
return true;
}
/* always return false in order to continue processing events */
return false;
}
/*
* RandomInputHandler
*/
s32 RandomInputHandler::Rand(s32 min, s32 max)
{
return (myrand() % (max - min + 1)) + min;
}
|