about camera panning

i have used useDrive() for moving the camera left and right on pressing the left mouse button. but instead of zooming in or zooming out, i want the camera to look up or down when the mouse cursor is dragged up or down. I know that useDrive() does not support thisfunctionality. What is an alternative to achieving the camera look up/down movement.

Oh! i forgot to paste the code which i have as of now:
want to achieve camera looking up / down movement.
Please help.

import direct.directbase.DirectStart
from direct.task import Task
from direct.actor import Actor
from direct.showbase import DirectObject
import math

#Load the first environment model
environ = loader.loadModel(“models/environment”)
class Camera(DirectObject.DirectObject):
def init(self):
self.x = 0
self.y = 0
self.z = 0

  self.h = 0
  self.p = 0
  self.r = 0
  base.camera.setPos(self.x, self.y, self.z)
  base.camera.setHpr(self.h, self.p, self.r)

c = Camera()

Excuse me, but I get really mad at double-posts.

You already posted this in General Discussions.
There is no use of posting such things twice. There is no way your question gets answered better then.