Changeset 2773


Ignore:
Timestamp:
Aug 20, 2006, 9:49:41 AM (19 years ago)
Author:
bird
Message:

No tabs. Adjusted debug logging levels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/synergy/lib/platform/CPMKeyState.cpp

    r2768 r2773  
    115115        m_eventTarget(eventTarget),
    116116        m_fakeMsg(fakeMsg),
    117     m_lastButton(0),
     117        m_lastButton(0),
    118118        m_fixTimer(NULL),
    119119        m_lastDown(kKeyNone),
     
    122122        m_originalSavedModifiers(0)
    123123{
    124     LOG((CLOG_DEBUG "CPMKeyState:"));
     124    LOG((CLOG_DEBUG2 "CPMKeyState:"));
    125125}
    126126
    127127CPMKeyState::~CPMKeyState()
    128128{
    129     LOG((CLOG_DEBUG "~CPMKeyState:"));
     129    LOG((CLOG_DEBUG2 "~CPMKeyState:"));
    130130        disable();
    131131}
     
    134134CPMKeyState::disable()
    135135{
    136     LOG((CLOG_DEBUG "disable:"));
     136    LOG((CLOG_DEBUG2 "disable:"));
    137137        if (m_fixTimer != NULL) {
    138138                EVENTQUEUE->removeHandler(CEvent::kTimer, m_fixTimer);
     
    146146CPMKeyState::virtualKeyToButton(ULONG virtualKey) const
    147147{
    148     LOG((CLOG_DEBUG "virtualKeyToButton:"));
     148    LOG((CLOG_DEBUG2 "virtualKeyToButton:"));
    149149        return m_virtualKeyToButton[virtualKey & 0xffu];
    150150}
     
    153153CPMKeyState::testAutoRepeat(bool press, bool isRepeat, KeyButton button)
    154154{
    155     LOG((CLOG_DEBUG "testAutoRepeat:"));
     155    LOG((CLOG_DEBUG2 "testAutoRepeat:"));
    156156        if (!isRepeat)
    157157                isRepeat = press && button == m_lastDown && button != kKeyNone;
     
    163163CPMKeyState::saveModifiers()
    164164{
    165     LOG((CLOG_DEBUG "saveModifiers:"));
     165    LOG((CLOG_DEBUG2 "saveModifiers:"));
    166166        m_savedModifiers         = getActiveModifiers();
    167167        m_originalSavedModifiers = m_savedModifiers;
     
    171171CPMKeyState::useSavedModifiers(bool enable)
    172172{
    173     LOG((CLOG_DEBUG "useSavedModifiers:"));
     173    LOG((CLOG_DEBUG2 "useSavedModifiers:"));
    174174        if (enable != m_useSavedModifiers) {
    175175                m_useSavedModifiers = enable;
     
    185185CPMKeyState::mapKeyFromEvent(USHORT fsFlags, UCHAR ucRepeat, UCHAR ucScanCode, USHORT usch, USHORT usvk, KeyModifierMask* maskOut) const
    186186{
    187     LOG((CLOG_DEBUG "mapKeyFromEvent:"));
     187    LOG((CLOG_DEBUG2 "mapKeyFromEvent:"));
    188188#if 0 /** @todo */
    189189        static const KeyModifierMask s_controlAlt = KeyModifierControl | KeyModifierAlt;
     
    241241CPMKeyState::mapKeyToVirtualKey(KeyID key) const
    242242{
    243     LOG((CLOG_DEBUG "mapKeyToVirtualKey:"));
     243    LOG((CLOG_DEBUG2 "mapKeyToVirtualKey:"));
    244244        if (key == kKeyNone)
    245245                return 0;
     
    256256                                                        SInt32 count, KeyButton button)
    257257{
    258     LOG((CLOG_DEBUG "sendKeyEvent:"));
     258    LOG((CLOG_DEBUG2 "sendKeyEvent:"));
    259259        if (press || isAutoRepeat) {
    260260                // send key
     
    278278CPMKeyState::fakeKeyDown(KeyID id, KeyModifierMask mask, KeyButton button)
    279279{
    280     LOG((CLOG_DEBUG "fakeKeyDown: id=%#x mask=%#x button=%#x", id, mask, button));
     280    LOG((CLOG_DEBUG2 "fakeKeyDown: id=%#x mask=%#x button=%#x", id, mask, button));
    281281        CKeyState::fakeKeyDown(id, mask, button);
    282282}
     
    285285CPMKeyState::fakeKeyRepeat(KeyID id, KeyModifierMask mask, SInt32 count, KeyButton button)
    286286{
    287     LOG((CLOG_DEBUG "fakeKeyRepeat: id=%#x mask=%#x count=%d button=%#x", id, mask, count, button));
     287    LOG((CLOG_DEBUG2 "fakeKeyRepeat: id=%#x mask=%#x count=%d button=%#x", id, mask, count, button));
    288288        CKeyState::fakeKeyRepeat(id, mask, count, button);
    289289}
     
    292292CPMKeyState::fakeCtrlAltDel()
    293293{
    294     LOG((CLOG_DEBUG "fakeCtrlAltDel:"));
     294    LOG((CLOG_DEBUG2 "fakeCtrlAltDel:"));
    295295    fakeKeyDown(kKeyDelete, KeyModifierControl | KeyModifierAlt, virtualKeyToButton(VK_DELETE));
    296296}
     
    299299CPMKeyState::pollActiveModifiers() const
    300300{
    301     LOG((CLOG_DEBUG "pollActiveModifiers:"));
     301    LOG((CLOG_DEBUG2 "pollActiveModifiers:"));
    302302        KeyModifierMask state = 0;
    303303
     
    323323CPMKeyState::pollActiveGroup() const
    324324{
    325     LOG((CLOG_DEBUG "pollActiveGroup:"));
     325    LOG((CLOG_DEBUG2 "pollActiveGroup:"));
    326326#if 0
    327327        HKL hkl            = GetKeyboardLayout(targetThread);
     
    343343CPMKeyState::pollPressedKeys(KeyButtonSet& pressedKeys) const
    344344{
    345     LOG((CLOG_DEBUG "pollPressedKeys:"));
     345    LOG((CLOG_DEBUG2 "pollPressedKeys:"));
    346346        BYTE keyState[256];
    347347    if (WinSetKeyboardStateTable(HWND_DESKTOP, keyState, FALSE)) {
     
    454454CPMKeyState::getKeyMap(CKeyMap& keyMap)
    455455{
    456     LOG((CLOG_DEBUG "getKeyMap:"));
     456    LOG((CLOG_DEBUG2 "getKeyMap:"));
    457457#if 0
    458458        // update keyboard groups
     
    828828CPMKeyState::fakeKey(const Keystroke& keystroke)
    829829{
    830     LOG((CLOG_DEBUG "fakeKey:"));
     830    LOG((CLOG_DEBUG2 "fakeKey:"));
    831831        switch (keystroke.m_type) {
    832832        case Keystroke::kButton: {
    833                 LOG((CLOG_DEBUG1 "  %03x (%08llx) %s%s", keystroke.m_data.m_button.m_button, keystroke.m_data.m_button.m_client,
     833                LOG((CLOG_DEBUG2 "  %03x (%08llx) %s%s", keystroke.m_data.m_button.m_button, keystroke.m_data.m_button.m_client,
    834834             keystroke.m_data.m_button.m_press ? "down" : "up", keystroke.m_data.m_button.m_repeat ? " repeate" : ""));
    835835                KeyButton button = keystroke.m_data.m_button.m_button;
     
    10081008CPMKeyState::getActiveModifiersRValue()
    10091009{
    1010     LOG((CLOG_DEBUG "getActiveModifiersRValue:"));
     1010    LOG((CLOG_DEBUG2 "getActiveModifiersRValue:"));
    10111011        if (m_useSavedModifiers) {
    10121012                return m_savedModifiers;
     
    10181018CPMKeyState::getKeyID(ULONG virtualKey, KeyButton button, bool numpad, USHORT usChar)
    10191019{
    1020     LOG((CLOG_DEBUG "getKeyID:"));
     1020    LOG((CLOG_DEBUG2 "getKeyID:"));
    10211021    if (virtualKey < sizeof(s_virtualKey) / sizeof(s_virtualKey[0])) {
    10221022
     
    10851085                                PBYTE keyState) const
    10861086{
    1087     LOG((CLOG_DEBUG "getIDForKey:"));
     1087    LOG((CLOG_DEBUG2 "getIDForKey:"));
    10881088#if 0
    10891089        int n;
     
    11391139{
    11401140        ClientData data; data.u = item.m_client; assert(sizeof(data.u) == sizeof(data));
    1141     LOG((CLOG_DEBUG
     1141    LOG((CLOG_DEBUG1
    11421142         "addKeyEntry: scan=%02x+%02x req=%c%c%c%c%c%c[%c%c%c%c%c%c]{%x} id=%04x(%c) xlatChar=%02x(%c) scan=%02x xlatScan=%02x [%s]%s%s%s%s%s%s",
    11431143         item.m_button, convertKeyModiferMaskToTCF(item.m_required),
     
    11671167         ));
    11681168        if (data.s.scan2 || data.s.xlatScan2) {
    1169                 LOG((CLOG_DEBUG
     1169                LOG((CLOG_DEBUG1
    11701170                         "addKeyEntry: xlatChar2=%02x(%c) scan2=%02x xlatScan2=%02x",
    11711171                         data.s.xlatChar2, data.s.xlatChar2 < 128 && isprint(data.s.xlatChar2) ? data.s.xlatChar2 : '.',
     
    11741174
    11751175        if (!keyMap.addKeyEntry(item)) {
    1176                 LOG((CLOG_DEBUG "!not accepted!"));
     1176                LOG((CLOG_DEBUG1 "!not accepted!"));
    11771177    }
    11781178        if (item.m_group == 0) {
Note: See TracChangeset for help on using the changeset viewer.