An electronic device drives an oscillatory actuator to cause generation of
vibration when it is detected that an operation input to a touch panel or
operation key has been received. The electronic device causes, by this
vibration, the touch panel and operation key to vibrate in a direction
perpendicular to their respective front surfaces. Alternatively, the
housing of the electronic device is made to vibrate. Further, the
oscillatory actuator has a weight, a support member for supporting the
weight to allow it to reciprocate, and connected to the touch panel or
housing or other vibratory member of the electronic device, or vibratory
member of the base member of the oscillatory actuator in contact with the
vibratory member, and a mechanism for imparting a magnetic force or
electrostatic force to cause reciprocal movement of the weight.