there is a rotary encoder dto included. this however doesn't solve your problem completely because that dto generates axis events while android expects corresponding key events. so I guess you could either rewrite the kernel module the dto is using to emit key events or alternatively create an android service that deals with the axis events.