Hi Wonho,
The current implementations of the GUI applications within the 'Examples' folder are all set-up to use
/dev/input/event0
as touch input device. If you have attached a keyboard or mouse to your Raspberry Pi, then it could be that the touch controller is assigned to a different id. You can found out the names and other attributes of the attached input devices by executing
cat /proc/bus/input/devices
on your shell. Then please adapt the adequate device within the TouchEventThread() of your main.c.
Best regards,
Manuel