Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1997 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 1997 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 665 mark_thread_read
Warning [2] Undefined variable $postsdone - Line: 901 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 901 errorHandler->error
Warning [2] Undefined array key 11 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 12 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 14 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 15 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 16 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 50 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 50 - Line: 1630 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 1630 errorHandler->error
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 919 buildtree
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions_user.php 813 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 920 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 920 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 33 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $multipage - Line: 36 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 36 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $ratethread - Line: 41 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 41 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $multipage - Line: 68 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 68 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 82 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $usersbrowsing - Line: 92 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 92 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $thread_deleted - Line: 107 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 107 errorHandler->error
/showthread.php 1587 eval

Keyboard Support
The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/showthread.php 28 require_once
Warning [2] Undefined array key 1 - Line: 1449 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 1449 errorHandler->error
/inc/functions.php 1414 fetch_forum_permissions
/inc/functions.php 2953 forum_permissions
/showthread.php 657 build_forum_jump
Warning [2] Undefined array key "mybb" - Line: 1997 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 1997 errorHandler->error
/inc/functions_indicators.php 41 my_set_array_cookie
/showthread.php 665 mark_thread_read
Warning [2] Undefined variable $postsdone - Line: 901 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 901 errorHandler->error
Warning [2] Undefined array key 11 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 12 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 14 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 15 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 16 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 50 - Line: 907 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 907 errorHandler->error
Warning [2] Undefined array key 50 - Line: 1630 - File: showthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php 1630 errorHandler->error
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 1632 buildtree
/showthread.php 919 buildtree
Warning [2] Undefined array key "additionalgroups" - Line: 7360 - File: inc/functions.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions.php 7360 errorHandler->error
/inc/functions_user.php 813 is_member
/inc/functions_post.php 416 purgespammer_show
/showthread.php 920 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 920 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined array key "showimages" - Line: 757 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 757 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 762 - File: inc/functions_post.php PHP 8.1.30 (FreeBSD)
File Line Function
/inc/functions_post.php 762 errorHandler->error
/showthread.php 920 build_postbit
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 33 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $multipage - Line: 36 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 36 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $ratethread - Line: 41 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 41 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $multipage - Line: 68 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 68 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 82 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $usersbrowsing - Line: 92 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 92 errorHandler->error
/showthread.php 1587 eval
Warning [2] Undefined variable $thread_deleted - Line: 107 - File: showthread.php(1587) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/showthread.php(1587) : eval()'d code 107 errorHandler->error
/showthread.php 1587 eval






Keyboard Support
#2
Apost 
(26 Mar 2013, 15:46)stranger Wrote: How does the Murl Engine handle keyboard support?

The Murl Engine provides two possible ways to process keyboard events.

RawKeys

The Murl::Input::IRawKeyboardDevice can be used to obtain the status of physical keys on the keyboard – we call them "raw keys". The definition for raw key codes can be found in the file murl_raw_key_codes.h:
enum RawKeyCode
    {
        RAWKEY_NONE             = 0x00,
       
        RAWKEY_ESCAPE           = 0x01,
        RAWKEY_1                = 0x02,
        RAWKEY_2                = 0x03,
        …
 

The file should contain a RAWKEY_… definition for every possible physical key. The list includes e.g. RAWKEY_0, RAWKEY_KEYPAD_0, RAWKEY_LEFT_SHIFT, RAWKEY_KEYPAD_NUMLOCK, RAWKEY_VOLUME_UP, RAWKEY_KANJI etc.

If you press on an English keyboard the key Y you will get events for RAWKEY_Y. The same key is labeled with Z on a German keyboard. Nevertheless if you press the key Z on a German keyboard you will get events for RAWKEY_Y because it is the same physical button with the same key code.

If you press the two keys left SHIFT and Y you will get events for both keys RAWKEY_Y and RAWKEY_LEFT_SHIFT.

To obtain the status for physical keyboard input, you can use the device handler's WasRawKeyPressed() method.
Logic::IDeviceHandler* deviceHandler = state->GetDeviceHandler();
if (deviceHandler->WasRawKeyPressed(RAWKEY_Y))
  //do whatever is to do

In addition to WasRawKeyPressed(), physical keyboard input is also reflected by the IsRawKeyPressed() and WasRawKeyReleased() methods. During a regular keystroke, these methods return true in the following sequence:
  1. At the moment of first pressing the key down, WasRawKeyPressed() returns true for exactly one logic tick
  2. As long as the key is down, IsRawKeyPressed() returns true in every logic tick.
  3. When the key is released, WasRawKeyReleased() returns true for exacly one logic tick.
This behavior is also detailed described in the tutorials section: http://murlengine.com/tutorials/en/_tuto...01_t02.php

Please note that the framework do not report raw keys for non-physical keyboards e.g. touch screen keyboards on mobile devices.

Vanilla Keys

The Murl::Input::IKeyboardDevice can be used to obtain the character value of a keystroke after the operating system processed the key codes – we call them "vanilla keys".

While the IRawKeyboardDevice only reports key states, the IKeyboardDevice reports the UTF8 encoded character representation of a keystroke. The result depends for example on your language settings.

If you press the key Y you will get a lowercase y if the language is set to English. If you press the two keys SHIFT and Y you will get uppercase Y. If the language is set to German you will get z or Z respectively.

You can use the the device handler's GetNumberOfKeys, GetKey and GetKeys methods to obtain the UTF8 character representation.
Logic::IDeviceHandler* deviceHandler = state->GetDeviceHandler();
UInt32 numKeys = deviceHandler->GetNumberOfKeys();
for (UInt32 i = 0; i < numKeys; i++)
	Debug::Trace(deviceHandler->GetKey(i));
if (deviceHandler->WasRawKeyPressed(RAWKEY_Y))
	Debug::Trace("RAW Y PRESSED");
if (deviceHandler->WasRawKeyReleased(RAWKEY_Y))
	Debug::Trace("RAW Y RELEASED");
Reply


Messages In This Thread
Keyboard Support - by stranger - 26 Mar 2013, 15:46
RE: Keyboard Support - by Ketschak - 27 Mar 2013, 15:09
RE: Keyboard Support - by stranger - 13 Apr 2013, 7:23
RE: Keyboard Support - by Ketschak - 14 Apr 2013, 9:08
RE: Keyboard Support - by Ketschak - 14 Apr 2013, 9:54
RE: Keyboard Support - by Ketschak - 06 Jun 2013, 15:59

Forum Jump:


Copyright © 2011-2024 Spraylight GmbH.