2014/03/01

重新配對Logitech無線滑鼠

【問題】

將無線滑鼠與另一個無線鍵盤接收器配對之後,變成無法跟原本滑鼠的接收器配對,利用Logitech Unifying軟體想重新配對,但是軟體顯示沒有插入可用Unifying接收器,所以另尋配對的方式並記錄下來。

【解法】

1.先用Unifying將滑鼠與鍵盤接收器取消連結(因為一個裝置只能連結一個接收器)

2.插入滑鼠所附的接收器(鍵盤接收器先拔掉避免干擾),並下載Logitech Setpoint安裝
    http://www.logitech.com/zh-tw/support/3131

3.執行 C:\Program Files\Logitech\SetPointP\ConnectUtility 就能重新將滑鼠與原來的接收器重新配對


參考羅技官網:
http://www.logitech.com/zh-tw/support/5484?section=downloads&softwareid=4338&osid=1

2014/02/26

Enable Numpad in PuTTY

Change settings -> Terminal -> Features -> Disable application keypad mode

see the picture below:


2014/02/16

[C]方向鍵輸入判斷

#include <stdio.h>
#include <conio.h>

int main()
{
    char ch1, ch2;
    while(ch1 = getch())
    {
        if(ch1 == -32)
{
            ch2 = getch();
         
            if(ch2 == 72)
                printf("up key press\n");
            if(ch2 == 75)
                printf("left key press\n");
            if(ch2 == 77)
                printf("right key press\n");
            if(ch2 == 80)
                printf("down key press\n");
    }
    }
    return 0;
}