fix stylus orientation issue and add idc for touchscreen