diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-23 21:33:52 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-23 21:33:52 +0000 |
commit | dca733e2fe356bd596d6b8cde5246db0767fe221 (patch) | |
tree | 721d53da343548b1839e35afd816bda977b41b55 /mouse.py | |
parent | db3fdd7e97855b8ea35064ed17e8e91ed98068ab (diff) | |
download | anaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.tar.gz anaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.tar.xz anaconda-dca733e2fe356bd596d6b8cde5246db0767fe221.zip |
fix for kickstart mouse
Diffstat (limited to 'mouse.py')
-rw-r--r-- | mouse.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -135,11 +135,14 @@ class Mouse (SimpleConfigFile): def setDevice(self, device): self.device = device - def set (self, mouse, emulateThreeButtons, thedev = None): + def set (self, mouse, emulateThreeButtons = -1, thedev = None): (gpm, x11, dev, em) = self.mice[mouse] self.info["MOUSETYPE"] = gpm self.info["XMOUSETYPE"] = x11 self.info["FULLNAME"] = mouse - self.emulate = emulateThreeButtons + if emulateThreeButtons != -1: + self.emulate = emulateThreeButtons + else: + self.emu = em if not self.device and thedev: self.device = thedev if not self.device: self.device = dev |