An electronic device comprising: an electromagnetic resonant panel ; and an electromagnetic controller ; and a controller ; wherein the electromagnetic controller is configured to: detect, via the electromagnetic controller, a first input value and a second input value induced in two locations on the electromagnetic resonant panel by at least one resonant circuit of an input pen; and wherein the controller is configured to: determine whether the input event by the pen input device is a single-input event or a multi-input event and determine that a pen multi-input event occurs when both of the first input value and the second input value exceed a first threshold , determine an input type of the pen multi-input event as a first pen multi-input event when both of the first input value and the second input value are greater than a second threshold , wherein the second threshold is greater than the first threshold, determine the input type of the pen multi-input event as a second pen multi-input event when the first input value is greater than the second threshold and the second input value is not greater than the second threshold, and control an operation corresponding to the determined input type of the pen multi-input event. an electromagnetic resonant panel ; and an electromagnetic controller ; and a controller ; detect, via the electromagnetic controller, a first input value and a second input value induced in two locations on the electromagnetic resonant panel by at least one resonant circuit of an input pen; and wherein the controller is configured to: determine whether the input event by the pen input device is a single-input event or a multi-input event and determine that a pen multi-input event occurs when both of the first input value and the second input value exceed a first threshold , determine an input type of the pen multi-input event as a first pen multi-input event when both of the first input value and the second input value are greater than a second threshold , wherein the second threshold is greater than the first threshold, determine the input type of the pen multi-input event as a second pen multi-input event when the first input value is greater than the second threshold and the second input value is not greater than the second threshold, and control an operation corresponding to the determined input type of the pen multi-input event. determine whether the input event by the pen input device is a single-input event or a multi-input event and determine that a pen multi-input event occurs when both of the first input value and the second input value exceed a first threshold , determine an input type of the pen multi-input event as a first pen multi-input event when both of the first input value and the second input value are greater than a second threshold , wherein the second threshold is greater than the first threshold, determine the input type of the pen multi-input event as a second pen multi-input event when the first input value is greater than the second threshold and the second input value is not greater than the second threshold, and control an operation corresponding to the determined input type of the pen multi-input event. <EOS>