pynput icon indicating copy to clipboard operation
pynput copied to clipboard

Detect earphone/headset button

Open ikhwanperwira opened this issue 3 years ago • 0 comments

I wish there's simple program like this

from pynput.headset import isPressed

While True:
  if isPressed():
    print("clicking")
  else:
    print("no press")

ikhwanperwira avatar Feb 24 '22 04:02 ikhwanperwira