how to send joystick value over IR in attiny 85

Hi,
Can any body tell me how to send joystick value over IR LED. OR push button hold statement. If I press and hold push button then another button does not send any code. It will be very helpful for if I get any idea about how to send 2 button statement at the same time. Because I want to create a joystick with push button or some common stuff. I would be glad enough if any one give me some idea. Thanks in advance for your kind reply.