NSAIDs can create sensitivity to light in the eyes. When exposed to sunlight, drugs from this group can cause a reaction in the eyes. Specifically, drugs from this group, especially 2-arylpropionic acid, are associated with light sensitivity, but other drugs (such as piroxicam, diclofenac, and benzydamine) may also cause light sensitivity.
Narcotic painkillers like morphine can cause constriction of the pupil.